From f106ef5f05ee60c2a38633835135ace9790c86cf Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 25 Oct 2018 11:29:28 +0000 Subject: [PATCH] Bug 21611: Fix priority dropdown for holds To Test: 1 - Find a record 2 - Place several holds some with differing pickup locations 3 - Check in one hold to confirm as waiting 4 - Check another in to set a hold in transit 5 - View the holds queue for the record: /cgi-bin/koha/reserve/request.pl?biblionumber=## 6 - Confirm found holds are incorrect 7 - Apply patch 8 - Reload 9 - Confirm holds look correct 10 - Alter the values of HoldsSplitQueue and HoldsSplitQueueNumbering 11 - Confirm things still look right --- koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc index a04d1e0..25af3b9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc @@ -49,12 +49,15 @@ [% END %] [% END %] [% ELSE %] + [% SET ranker = 1 %] [% FOREACH h IN holds %] + [% NEXT IF h.found %] [% IF ( h.priority == hold.priority ) %] - + [% ELSE %] - + [% END %] + [% ranker = ranker + 1 %] [% END %] [% END %] [% ELSIF !hold.found %] -- 2.1.4