Bug 35983: Remove extra selected=selected from dropdown menu

To test:
1. Admin > Circ & fine rules
2. Select a library at the top of the forms ( #selectlibrary )
3. Try to change the 'Refund lost item replacement fee' to "Refund lost item charge (only if unpaid)".
4. Press save and let the page reload.
5. Look at the dropdown again, the value is now set to "Refund lost item charge and restore overdue fine".
6. APPLY PATCH
7. Try steps 2 - 5 again but this time the value in the dropdown should not change.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit af5453bbd2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Lucas Gass 2024-02-02 00:04:33 +00:00 committed by Fridolin Somers
parent 8644a1165f
commit fdc2bbb76f

View file

@ -1177,7 +1177,7 @@
[% ELSIF ( refundLostItemFeeRule.rule_value == 'refund_unpaid' ) %]
<option value="refund">Refund lost item charge</option>
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option>
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option>
<option value="charge">Refund lost item charge and charge new overdue fine</option>
<option value="restore">Refund lost item charge and restore overdue fine</option>
<option value="0">Leave lost item charge</option>
[% ELSIF ( refundLostItemFeeRule.rule_value == 'charge' ) %]