Skip to content

Commit 720d9c9

Browse files
authored
Merge pull request #2871 from DFE-Digital/AQTS-1104-bug-ordering-of-references-changes-for-prioritisation-when-checking-references
[AQTS-1104] Order the list of schools for both prioritisation setting check and reference checks by the school/institute name
2 parents f05e5d5 + 4f0c19b commit 720d9c9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/controllers/assessor_interface/prioritisation_reference_requests_controller.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ def review_form_params
103103

104104
def prioritisation_reference_requests
105105
@prioritisation_reference_requests ||=
106-
assessment.prioritisation_reference_requests
106+
assessment
107+
.prioritisation_reference_requests
108+
.includes(:work_history)
109+
.order("work_histories.school_name")
107110
end
108111

109112
def assessment

app/controllers/assessor_interface/prioritisation_work_history_checks_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def prioritisation_work_history_checks
8080
reference: params[:application_form_reference],
8181
},
8282
)
83+
.order("work_histories.school_name")
8384
end
8485

8586
def prioritisation_work_history_check

0 commit comments

Comments
 (0)