From 2f0cd1c2289468f6bb999bb1ae064cb7011a4bfa Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 13 Feb 2026 15:04:17 +0000 Subject: [PATCH] Bug 23415: (follow-up) Fix typo 'oweing' -> 'owing' in templates and notices This patch corrects a typo in the auto renewal error code and related notice templates: - Adds database update to fix existing notice templates in letter table - Fixes sample notices for new installations - Fixes renew_strings.inc template include The error code changes from 'auto_too_much_oweing' to 'auto_too_much_owing' throughout. --- installer/data/mysql/atomicupdate/bug_23415.pl | 11 +++++++++++ installer/data/mysql/en/mandatory/sample_notices.yml | 4 ++-- .../intranet-tmpl/prog/en/includes/renew_strings.inc | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_23415.pl b/installer/data/mysql/atomicupdate/bug_23415.pl index f098a7b8da8..8d7cc1f8853 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 69ff86f532b..79bdc7389b9 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 026cd7f011c..6c8e8fdae64 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 -- 2.53.0