Skip to content

Fix undefined local variable error#2860

Open
lfdebrux wants to merge 1 commit into
mainfrom
ldeb-fix-sentry-issue-7557924147
Open

Fix undefined local variable error#2860
lfdebrux wants to merge 1 commit into
mainfrom
ldeb-fix-sentry-issue-7557924147

Conversation

@lfdebrux

@lfdebrux lfdebrux commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

What problem does this pull request solve?

Make sure that we pass current_form to the type_of_answer template in the (very rare) case where the answer type input is invalid.

This should resolve https://govuk-forms.sentry.io/issues/7557924147/.

Things to consider when reviewing

  • Ensure that you consider the wider context.
  • Does it work when run on your machine?
  • Is it clear what the code is doing?
  • Do the commit messages explain why the changes were made?
  • Are there all the unit tests needed?
  • Do the end to end tests need updating before these changes will pass?
  • Has all relevant documentation been updated?

Make sure that we pass `current_form` to the type_of_answer template
in the (very rare) case where the answer type input is invalid.
@lfdebrux lfdebrux force-pushed the ldeb-fix-sentry-issue-7557924147 branch from f5f0a50 to 3cd9321 Compare June 23, 2026 11:11
@github-actions

Copy link
Copy Markdown

🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2860.admin.review.forms.service.gov.uk/

It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready
after 5 minutes, there may be something wrong with the ECS task. You will need to go to the integration AWS account
to debug, or otherwise ask an infrastructure person.

For the sign in details and more information, see the review apps wiki page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant