From 1caacf0782a74bd428e1e48bde9c7f36bc963c51 Mon Sep 17 00:00:00 2001
From: Nick Clemens <nick@bywatersolutions.com>
Date: Wed, 6 Apr 2022 13:49:58 +0000
Subject: [PATCH] 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
---
 koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
index 0ee352fcb0..c3d2d6a9ea 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
@@ -1008,9 +1008,9 @@
                               [% IF defaultRefundRule == 'refund' %]
                                 Use default (Refund lost item charge)
                               [% ELSIF defaultRefundRule == 'charge' %]
-                                Use default (Refund lost item charge and restore overdue fine)
-                              [% ELSIF defaultRefundRule == 'restore' %]
                                 Use default (Refund lost item charge and charge new overdue fine)
+                              [% ELSIF defaultRefundRule == 'restore' %]
+                                Use default (Refund lost item charge and restore overdue fine)
                               [% ELSE %]
                                 Use default (Leave lost item charge)
                               [% END %]
-- 
2.30.2