Skip to content

Commit

Permalink
Rebase fixup: Remove problematic reference number generation
Browse files Browse the repository at this point in the history
  • Loading branch information
currycoder committed Jan 13, 2025
1 parent 15d4d1f commit c41a4e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exporter/applications/helpers/task_list_sections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions exporter/applications/views/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c41a4e3

Please sign in to comment.