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.
This commit is contained in:
parent
1eb1cfdbef
commit
a359ed47b1
|
|
@ -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'";
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<span>Scheduled for automatic renewal and cannot be renewed because the patron's account has expired</span>
|
||||
[% CASE 'auto_renew' %]
|
||||
<span>Scheduled for automatic renewal</span>
|
||||
[% CASE 'auto_too_much_oweing' %]
|
||||
[% CASE 'auto_too_much_owing' %]
|
||||
<span>Scheduled for automatic renewal and cannot be renewed because the patron has too many outstanding charges</span>
|
||||
[% CASE 'on_reserve' %]
|
||||
<span>On hold for another patron</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue