Bug 21608: Add value for 'rank-request' when dropdwn disabled
authorNick Clemens <nick@bywatersolutions.com>
Mon, 26 Nov 2018 18:19:03 +0000 (18:19 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 11 Dec 2018 19:13:31 +0000 (19:13 +0000)
When a field is disabled no value is submitted in the form - this was
causing found holds to be reverted

To test:
1 - Apply all patches except this one
2 - PLace several holds on one bib
3 - Set at least one waiting or intransit
4 - Making no adjustments hit "Update holds"
5 - Waiting/intransit holds are all reset
6 - Mark them waiting/intransit again
7 - Apply this patch
8 - Click 'update holds'
9 - Found status is not accidentally reverted

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc

index 460fd27..50cb144 100644 (file)
@@ -29,6 +29,7 @@
                 [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]
                     <select name="rank-request">
                 [% ELSE %]
+                    <input type="hidden" name="rank-request" value="[% hold.priority | html %]">
                     <select name="rank-request" disabled="disabled">
                 [% END %]
                     [% IF ( hold.found ) %]