diff --git a/hypha/apply/funds/views.py b/hypha/apply/funds/views.py index a4d03f77de209416920bb5b375e3a5ff05873ddc..5fb60dbe0960db619ba8266e1a14380266d77834 100644 --- a/hypha/apply/funds/views.py +++ b/hypha/apply/funds/views.py @@ -137,7 +137,7 @@ class UpdateReviewersMixin: action = None if submission.status == INITIAL_STATE: # Automatically transition the application to "Internal review". - action = submission.workflow.stepped_phases[1][0].name + action = submission.workflow.stepped_phases[2][0].name elif submission.status == 'proposal_discussion': # Automatically transition the proposal to "Internal review". action = 'proposal_internal_review' diff --git a/hypha/apply/review/views.py b/hypha/apply/review/views.py index d4ed8a4dbc0d158b6a5559b87ff76482f5fffc0e..06526cf6863c8dcbd92d7ac6399aa517cb7f33f1 100644 --- a/hypha/apply/review/views.py +++ b/hypha/apply/review/views.py @@ -187,13 +187,13 @@ def review_workflow_actions(request, submission): action = None if submission.status == INITIAL_STATE: # Automatically transition the application to "Internal review". - action = submission_stepped_phases[1][0].name + action = submission_stepped_phases[2][0].name elif submission.status == 'proposal_discussion': # Automatically transition the proposal to "Internal review". action = 'proposal_internal_review' - elif submission.status == submission_stepped_phases[1][0].name and submission.reviews.count() > 1: + elif submission.status == submission_stepped_phases[2][0].name and submission.reviews.count() > 1: # Automatically transition the application to "Ready for discussion". - action = submission_stepped_phases[2][0].name + action = submission_stepped_phases[3][0].name elif submission.status == 'ext_external_review' and submission.reviews.by_reviewers().count() > 1: # Automatically transition the application to "Ready for discussion". action = 'ext_post_external_review_discussion'