Bug 28374: (QA follow-up) Avoid adding duplicate USE
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
5c6312b873
commit
c559cdeec0
|
|
@ -8,7 +8,11 @@ return {
|
|||
my ($dbh, $out) = @$args{qw(dbh out)};
|
||||
|
||||
$dbh->do(q{
|
||||
UPDATE letter SET content = CONCAT('[% USE KohaDates %][% USE Branches %][% USE Price %]', content), is_html = 1 WHERE code = 'RECEIPT';
|
||||
UPDATE letter
|
||||
SET content = CONCAT('[% USE KohaDates %][% USE Branches %][% USE Price %]', content),
|
||||
is_html = 1
|
||||
WHERE code = 'RECEIPT'
|
||||
AND content NOT LIKE '%[\% USE KohaDates \%][\% USE Branches \%][\% USE Price \%]%';
|
||||
});
|
||||
say $out "Added KohaDates, Branches and Price plugins";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue