Bug 30471: Correct display of default rules

To test:
1 - Browse to 'Administration->Circulation and fines rules'
2 - Make sure you are editing 'Standard rules for all libraries'
3 - Set 'Lost item fee refund on return policy' to 'Refund lost item charge and charge new overdue fine'
4 - Swtich to edit rules for a specific library, click on the dropdown for 'Lost item fee refund on return policy' and note default says 'Use default (Refund lost item charge and restore overdue fine)'
5 - Switch default/all libraries rule to 'Refund lost item charge and restore overdue fine'
6 - On specific branch note the default option is now 'Use default (Refund lost item charge and charge new overdue fine)'
7 - Apply patch and repeat, note the default descriptions now display correctly

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 417d8df61b)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2022-04-06 13:49:58 +00:00 committed by Lucas Gass
parent 5c4006ecc6
commit c92a1cf501

View file

@ -1017,9 +1017,9 @@
[% IF defaultRefundRule == 'refund' %]
<span>Use default (Refund lost item charge)</span>
[% ELSIF defaultRefundRule == 'charge' %]
<span>Use default (Refund lost item charge and restore overdue fine)</span>
[% ELSIF defaultRefundRule == 'restore' %]
<span>Use default (Refund lost item charge and charge new overdue fine)</span>
[% ELSIF defaultRefundRule == 'restore' %]
<span>Use default (Refund lost item charge and restore overdue fine)</span>
[% ELSE %]
<span>Use default (Leave lost item charge)</span>
[% END %]