From 30642b212191ec7fec5bf2c93b62a01090f45cb9 Mon Sep 17 00:00:00 2001 From: Andrew Fuerste-Henry Date: Mon, 21 Feb 2022 16:07:06 +0000 Subject: [PATCH] Bug 29943: DBRev 21.05.10.003 Signed-off-by: Andrew Fuerste-Henry --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_29943.pl | 16 ---------------- installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 17 deletions(-) delete mode 100755 installer/data/mysql/atomicupdate/bug_29943.pl diff --git a/Koha.pm b/Koha.pm index 7556075304..8a92431b9c 100644 --- a/Koha.pm +++ b/Koha.pm @@ -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.05.10.002"; +$VERSION = "21.05.10.003"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_29943.pl b/installer/data/mysql/atomicupdate/bug_29943.pl deleted file mode 100755 index f6f2e7db07..0000000000 --- a/installer/data/mysql/atomicupdate/bug_29943.pl +++ /dev/null @@ -1,16 +0,0 @@ -use Modern::Perl; - -return { - bug_number => 29943, - description => "Fix typo in NOTIFY_MANAGER notice", - up => sub { - my ($args) = @_; - my ($dbh, $out) = @$args{qw(dbh out)}; - - # Correct "[% borrowers." (where present and restricted to specific notice) - $dbh->do(q| -UPDATE letter SET content = REPLACE(content, '[% borrowers.', '[% borrower.') -WHERE code = 'NOTIFY_MANAGER' - |); - }, -}; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 06ac617564..f503e4646a 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -24603,6 +24603,15 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 29495, "Issue link is lost in return claims when using 'MarkLostItemsAsReturned'"); } +$DBversion = '21.05.10.003'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + UPDATE letter SET content = REPLACE(content, '[% borrowers.', '[% borrower.') +WHERE code = 'NOTIFY_MANAGER' + }); + NewVersion( $DBversion, "29943", "Fix typo in NOTIFY_MANAGER notice" ); +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; -- 2.39.5