diff --git a/installer/data/mysql/atomicupdate/bug_23415.pl b/installer/data/mysql/atomicupdate/bug_23415.pl
index f098a7b8da..8d7cc1f885 100755
--- a/installer/data/mysql/atomicupdate/bug_23415.pl
+++ b/installer/data/mysql/atomicupdate/bug_23415.pl
@@ -49,5 +49,16 @@ return {
);
say $out "Added new system preference 'FineNoRenewalsBlockSelfCheckRenew'";
+
+ # Fix typo in notice templates: oweing -> owing
+ $dbh->do(
+ q{
+ UPDATE letter
+ SET content = REPLACE(content, 'auto_too_much_oweing', 'auto_too_much_owing')
+ WHERE content LIKE '%auto_too_much_oweing%'
+ }
+ );
+
+ say $out "Fixed typo in notice templates: 'oweing' -> 'owing'";
},
};
diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml
index 69ff86f532..79bdc7389b 100644
--- a/installer/data/mysql/en/mandatory/sample_notices.yml
+++ b/installer/data/mysql/en/mandatory/sample_notices.yml
@@ -2362,7 +2362,7 @@ tables:
- "You have overdue items."
- "[% ELSIF checkout.auto_renew_error == 'auto_too_late' %]"
- "It's too late to renew this item."
- - "[% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]"
+ - "[% ELSIF checkout.auto_renew_error == 'auto_too_much_owing' %]"
- "Your total unpaid fines are too high."
- "[% ELSIF checkout.auto_renew_error == 'too_unseen' %]"
- "This item must be renewed at the library."
@@ -2439,7 +2439,7 @@ tables:
- "You have overdue items."
- "[% ELSIF checkout.auto_renew_error == 'auto_too_late' %]"
- "It's too late to renew this item."
- - "[% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]"
+ - "[% ELSIF checkout.auto_renew_error == 'auto_too_much_owing' %]"
- "Your total unpaid fines are too high."
- "[% ELSIF checkout.auto_renew_error == 'too_unseen' %]"
- "This item must be renewed at the library."
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/renew_strings.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/renew_strings.inc
index 026cd7f011..6c8e8fdae6 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/renew_strings.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/renew_strings.inc
@@ -15,7 +15,7 @@
Scheduled for automatic renewal and cannot be renewed because the patron's account has expired
[% CASE 'auto_renew' %]
Scheduled for automatic renewal
-[% CASE 'auto_too_much_oweing' %]
+[% CASE 'auto_too_much_owing' %]
Scheduled for automatic renewal and cannot be renewed because the patron has too many outstanding charges
[% CASE 'on_reserve' %]
On hold for another patron