Skip to content

Commit

Permalink
Merge pull request #620 from DH-IT-Portal-Development/fix/no-back-submit
Browse files Browse the repository at this point in the history
fix: prevent submission on back actions
  • Loading branch information
tymees authored Mar 11, 2024
2 parents a8dbed0 + 70f988a commit 2d75f25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proposals/views/proposal_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ def form_valid(self, form):
# Checks for practice proposals and starting the right
# kind of review happen over there.
proposal = form.instance
start_review(proposal)
if 'save_back' not in self.request.POST and 'js-redirect-submit' not in self.request.POST:
start_review(proposal)
return success_response

def get_next_url(self):
Expand Down

0 comments on commit 2d75f25

Please sign in to comment.