Koha/installer/data/mysql/db_revs/211200015.pl
Fridolin Somers bb316c5ded Bug 29943: DBRev 21.12.00.015
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-02-01 21:39:39 -10:00

16 lines
456 B
Perl
Executable file

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'
|);
},
};