mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Fix infinite loop in support flow
The support flow was using `yes` and `no` to mean emergency/not emergency. But not in all places – in one place it was using `True`/`False` instead. We were treating anything other than `yes`/`no` as a non-answer, which means ask the question again. Because of the `True`/`False` thing, there was no way of the user providing a valid `yes`/`no` answer. Which means that we just kept asking them the question again and again and they got stuck in a loop.
This commit is contained in:
@@ -26,7 +26,7 @@ def triage():
|
||||
return redirect(url_for(
|
||||
'.feedback',
|
||||
ticket_type='problem',
|
||||
severe=(form.severe.data == 'yes')
|
||||
severe=form.severe.data
|
||||
))
|
||||
return render_template(
|
||||
'views/support/triage.html',
|
||||
|
||||
Reference in New Issue
Block a user