Bugzilla – Attachment 127551 Details for
Bug 28374
Convert pos/printreceipt.pl to use GetPreparedLetter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28374: (QA follow-up) Avoid adding duplicate USE
Bug-28374-QA-follow-up-Avoid-adding-duplicate-USE.patch (text/plain), 1.25 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-11-11 18:30:04 UTC
(
hide
)
Description:
Bug 28374: (QA follow-up) Avoid adding duplicate USE
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-11-11 18:30:04 UTC
Size:
1.25 KB
patch
obsolete
>From 6f0bf41c4a4978a87e30a7c5e3738e615bae5aa5 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 11 Nov 2021 15:29:39 -0300 >Subject: [PATCH] Bug 28374: (QA follow-up) Avoid adding duplicate USE > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > installer/data/mysql/atomicupdate/bug_28374.pl | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_28374.pl b/installer/data/mysql/atomicupdate/bug_28374.pl >index bc03104d55..049dce3ccc 100755 >--- a/installer/data/mysql/atomicupdate/bug_28374.pl >+++ b/installer/data/mysql/atomicupdate/bug_28374.pl >@@ -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"; > >-- >2.33.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28374
:
121116
|
121117
|
122613
|
127367
|
127368
|
127415
|
127434
|
127435
|
127438
|
127439
|
127549
|
127550
| 127551