Skip to content

Commit 0b2f14c

Browse files
committed
fix save and continue bug in case of no answer
1 parent 0db35c0 commit 0b2f14c

File tree

1 file changed

+2
-0
lines changed
  • application/blueprints/questions

1 file changed

+2
-0
lines changed

application/blueprints/questions/views.py

+2
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ def save_answer(consideration_slug, stage, question_slug):
188188
db.session.add(answer)
189189
db.session.add(consideration)
190190
db.session.commit()
191+
else:
192+
answer = None
191193

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

0 commit comments

Comments
 (0)