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>
This commit is contained in:
Lucas Gass 2024-02-02 00:04:33 +00:00 committed by Katrin Fischer
parent 3d7ea3bd99
commit af5453bbd2
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -1186,7 +1186,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' ) %]