Bugzilla – Attachment 4616 Details for
Bug 5197
Today's date on checkin/checkout notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
bug5197.patch (text/plain), 1020 bytes, created by
Nicole C. Engard
on 2011-07-11 21:49:53 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2011-07-11 21:49:53 UTC
Size:
1020 bytes
patch
obsolete
>From d533dbbe2247d4709eea5eaf9dae871dfd2f5bf5 Mon Sep 17 00:00:00 2001 >From: Ian Walls <ian.walls@bywatersolutions.com> >Date: Mon, 11 Jul 2011 16:42:46 -0400 >Subject: [PATCH] Bug 5197: add <<today>> token to notices > >implements for Overdue notices >--- > misc/cronjobs/overdue_notices.pl | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > >diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl >index bc97ecb..e605451 100755 >--- a/misc/cronjobs/overdue_notices.pl >+++ b/misc/cronjobs/overdue_notices.pl >@@ -644,6 +644,9 @@ sub parse_letter { # FIXME: this code should probably be moved to C4::Letters:pa > return unless exists $params->{$required}; > } > >+ my $todaysdate = C4::Dates->new()->output("syspref"); >+ $params->{'letter'}->{title} =~ s/<<today>>/$todaysdate/g; >+ $params->{'letter'}->{content} =~ s/<<today>>/$todaysdate/g; > > if ( $params->{'substitute'} ) { > while ( my ( $key, $replacedby ) = each %{ $params->{'substitute'} } ) { >-- >1.7.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 5197
:
4616