Bug 29943: Db rev: replace typo in existing notices

Test plan:
Run updatedatabase.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Marcel de Rooy 2022-01-25 15:35:05 +00:00 committed by Fridolin Somers
parent 13490c4dfb
commit 320d73b10f

View file

@ -0,0 +1,16 @@
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'
|);
},
};