diff --git a/api/namex/resources/name_requests/report_resource.py b/api/namex/resources/name_requests/report_resource.py index eb7fc6eff..f94e261af 100644 --- a/api/namex/resources/name_requests/report_resource.py +++ b/api/namex/resources/name_requests/report_resource.py @@ -41,6 +41,7 @@ def email_consent_letter(self, nr_id): nr_model = Request.query.get(nr_id) if not nr_model: return jsonify(message='{nr_id} not found'.format(nr_id=nr_model.id)), HTTPStatus.NOT_FOUND + nr_model.consentFlag = 'R' # invariant: this function is only called when the consent letter has been received report, status_code = ReportResource._get_report(nr_model) if status_code != HTTPStatus.OK: return jsonify(message=str(report)), status_code diff --git a/api/report-templates/nameRequest.html b/api/report-templates/nameRequest.html index 80b50161f..a689d7f06 100644 --- a/api/report-templates/nameRequest.html +++ b/api/report-templates/nameRequest.html @@ -66,9 +66,15 @@