Bug 24378: (follow-up) Format due date as due date
authorKatrin Fischer <katrin.fischer.83@web.de>
Sun, 10 May 2020 17:06:17 +0000 (17:06 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 12 May 2020 10:03:50 +0000 (11:03 +0100)
Changes the due date formatting as was already done
for the new sample files on bug 23787.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

installer/data/mysql/atomicupdate/bug_24378_auto_renewals.perl
installer/data/mysql/updatedatabase.pl

index a958035..6dd5c1d 100644 (file)
@@ -27,7 +27,7 @@ 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 [% checkout.date_due %]", "The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due %]
+        content = REPLACE(content, "The following item [% biblio.title %] has correctly been renewed and is now due [% checkout.date_due | $KohaDates as_due_date => 1 %]", "The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due %]
 ")
         WHERE code = 'AUTO_RENEWALS';
     });
index d31355c..5333deb 100755 (executable)
@@ -14456,7 +14456,7 @@ if( CheckVersion( $DBversion ) ) {
         Your total unpaid fines are too high.
         [% END %]
         [% ELSE %]
-        The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due %]
+        The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due | $KohaDates as_due_date => 1 %]
         [% END %]", 'email');
     });