Koha-clms/installer/data/mysql/db_revs/211200015.pl

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