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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 12 Dec 2018 10:47:52 +0000 (10:47 +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>
(cherry picked from commit 0295fc2fc6062d9bb43e70bce5f5504b418f3629)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.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 ) %]