From de40a681625b544efdb697ab25b960bff08cb200 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 Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- 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 804c868c3b..a1807ab647 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.39.5