Bug 29557: DBRev 21.12.00.006

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Fridolin Somers 2022-01-11 11:45:26 -10:00
parent f2389de803
commit 42491ed1c3
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "21.12.00.005";
$VERSION = "21.12.00.006";
sub version {
return $VERSION;

View File

@ -2,7 +2,7 @@ use Modern::Perl;
return {
bug_number => "29557",
description => "Add auto_account_expired to AUTO_RENEWALS notice. Please update your AUTO_RENEWALS notice manually if you have changed or translated it.",
description => "Add auto_account_expired to AUTO_RENEWALS notice",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
@ -11,5 +11,6 @@ return {
SET content=REPLACE(content, "[% ELSIF checkout.auto_renew_error == 'too_unseen' %]\r\nThis item must be renewed at the library.\r\n[% END %]", "[% ELSIF checkout.auto_renew_error == 'too_unseen' %]\r\nThis item must be renewed at the library.\r\n[% ELSIF checkout.auto_renew_error == 'auto_account_expired' %]\r\nYour account has expired.\r\n[% END %]")
WHERE code="AUTO_RENEWALS"
});
say $out "Please update your AUTO_RENEWALS notice manually if you have changed or translated it"
},
}