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:
parent
13490c4dfb
commit
320d73b10f
1 changed files with 16 additions and 0 deletions
16
installer/data/mysql/atomicupdate/bug_29943.pl
Executable file
16
installer/data/mysql/atomicupdate/bug_29943.pl
Executable 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'
|
||||||
|
|);
|
||||||
|
},
|
||||||
|
};
|
Loading…
Reference in a new issue