Bugzilla – Attachment 120296 Details for
Bug 28258
Bad date formatting in AUTO_RENEWALS notice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28258: Update bad formatting in AUTO_RENEWALS notice
Bug-28258-Update-bad-formatting-in-AUTORENEWALS-no.patch (text/plain), 1.62 KB, created by
Jonathan Druart
on 2021-04-29 08:47:33 UTC
(
hide
)
Description:
Bug 28258: Update bad formatting in AUTO_RENEWALS notice
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-04-29 08:47:33 UTC
Size:
1.62 KB
patch
obsolete
>From 3c2d6478deede4be7e2d8532c2fe771358dca549 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 28 Apr 2021 20:48:37 +0000 >Subject: [PATCH] Bug 28258: Update bad formatting in AUTO_RENEWALS notice > >To test: >-Look at the AUTO_RENEWALS notice and see the syntax [% checkout.date_due as_due_date => 1 %] >-Apply patch, updatedatabase >-Look at the AUTO_RENEWALS notice and see the syntax [% checkout.date_due | $KohaDates as_due_date => 1%] > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../bug_28258_update_auto_renewals_template.perl | 10 ++++++++++ > 1 file changed, 10 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_28258_update_auto_renewals_template.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_28258_update_auto_renewals_template.perl b/installer/data/mysql/atomicupdate/bug_28258_update_auto_renewals_template.perl >new file mode 100644 >index 00000000000..612c20cac56 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_28258_update_auto_renewals_template.perl >@@ -0,0 +1,10 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do(q{ >+ UPDATE letter SET >+ content = REPLACE(content, "The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due as_due_date => 1 %]" , "The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due | $KohaDates as_due_date => 1 %]") >+ WHERE code = 'AUTO_RENEWALS'; >+ }); >+ >+ NewVersion( $DBversion, 28258, "Update AUTO_RENEWAL content"); >+} >-- >2.20.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 28258
:
120292
|
120296
|
120297
|
120301
|
120302