From 95e592d47fd7ba493695ca1d550b01fca0019ab2 Mon Sep 17 00:00:00 2001 From: Brendan Smith Date: Mon, 13 Jan 2025 15:22:09 +0000 Subject: [PATCH] Rebase fixup: Remove problematic reference number generation --- exporter/applications/helpers/task_list_sections.py | 2 +- exporter/applications/views/common.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/exporter/applications/helpers/task_list_sections.py b/exporter/applications/helpers/task_list_sections.py index aea3fb693e..ab0f07e5bc 100644 --- a/exporter/applications/helpers/task_list_sections.py +++ b/exporter/applications/helpers/task_list_sections.py @@ -3,8 +3,8 @@ def get_reference_number_description(application): - have_you_been_informed = application["have_you_been_informed"] reference_number_on_information_form = application["reference_number_on_information_form"] + have_you_been_informed = application["have_you_been_informed"] if have_you_been_informed == "yes": if not reference_number_on_information_form: reference_number_on_information_form = "not provided" diff --git a/exporter/applications/views/common.py b/exporter/applications/views/common.py index 485e7b377d..a1d88f945f 100644 --- a/exporter/applications/views/common.py +++ b/exporter/applications/views/common.py @@ -28,7 +28,6 @@ get_application_type_string, ) from exporter.applications.helpers.summaries import draft_summary -from exporter.applications.helpers.task_list_sections import get_reference_number_description from exporter.applications.helpers.task_lists import get_application_task_list from exporter.applications.helpers.validators import ( validate_withdraw_application, @@ -352,7 +351,7 @@ def get_context_data(self, **kwargs): "summary_page": True, "application_type": get_application_type_string(self.application), "notes": get_case_notes(self.request, self.case_id)["case_notes"], - "reference_code": get_reference_number_description(self.application), + # "reference_code": get_reference_number_description(self.application), } ) return context