From 4e2ab6fcf107870f4e85fb5f63a5d62bcff0fd5d Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Wed, 26 Oct 2016 09:12:16 +0200 Subject: [PATCH] Correct bug: close ref round updates sub status only if latter is EICassigned --- submissions/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/submissions/views.py b/submissions/views.py index 7f9276186..3a659bbb8 100644 --- a/submissions/views.py +++ b/submissions/views.py @@ -912,7 +912,8 @@ def close_refereeing_round(request, arxiv_identifier_w_vn_nr): submission = get_object_or_404 (Submission, arxiv_identifier_w_vn_nr=arxiv_identifier_w_vn_nr) submission.open_for_reporting = False submission.open_for_commenting = False - submission.status = 'review_closed' + if submission.status == 'EICassigned': # only close if currently undergoing refereeing + submission.status = 'review_closed' submission.reporting_deadline = timezone.now() submission.latest_activity = timezone.now() submission.save() -- GitLab