Skip to content

Commit

Permalink
fix save and continue bug in case of no answer
Browse files Browse the repository at this point in the history
  • Loading branch information
ashimali committed May 23, 2024
1 parent 0db35c0 commit 0b2f14c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/blueprints/questions/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ def save_answer(consideration_slug, stage, question_slug):
db.session.add(answer)
db.session.add(consideration)
db.session.commit()
else:
answer = None

if request.form.get("submit_button") == "add-another":
return redirect(
Expand Down

0 comments on commit 0b2f14c

Please sign in to comment.