@@ -, +, @@ --- .../prog/en/includes/holds_table.inc | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc @@ -27,17 +27,11 @@ [%- SET found_holds = 0 -%] [%- SET last_priority = holds.last.priority -%] - [% BLOCK priority_dropdown %] - [%- SET loop_priority = 1 -%] - [%- WHILE loop_priority <= last_priority -%] - [%- IF this_priority == loop_priority -%] - - [%- ELSE -%] - - [%- END -%] - [%- loop_priority = loop_priority + 1- %] - [%- END -%] + [% SET all_priorities = [] %] + [% FOREACH hold IN holds %] + [% all_priorities.push( hold.priority ) %] [% END %] + [% FOREACH hold IN holds %] [%- IF !hold.found && first_priority == 0 -%] @@ -63,7 +57,13 @@ [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]