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> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
13b3ea4b9a
commit
b5a8b89258
|
|
@ -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 New Issue