Bugzilla – Attachment 23212 Details for
Bug 10774
Allow individual holds to be suspended and resumed from the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[ALT] Bug 11244: notices ignoring the dateformat preference
Bug-11244-notices-ignoring-the-dateformat-preferen.patch (text/plain), 1.60 KB, created by
Jonathan Druart
on 2013-11-28 14:15:06 UTC
(
hide
)
Description:
[ALT] Bug 11244: notices ignoring the dateformat preference
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-11-28 14:15:06 UTC
Size:
1.60 KB
patch
obsolete
>From 336905fd45b5572c720a2ef0f0779e4b1b20f2b3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 28 Nov 2013 15:01:55 +0100 >Subject: [PATCH] Bug 11244: notices ignoring the dateformat preference > >Overdue notices are using the MySQL date format and not the dateformat >in the system preferences. > >Test Plan: >1) Enable checkout notices for a patron, make sure the date due is in > the notice. >2) Check out an item to that patron, note the date is in the mysql > datetime format >3) Apply this patch >4) Check out another item to the patron, not the date is now in the > preferred date format. > >http://bugs.koha-community.org/show_bug.cgi?id=10774 >--- > C4/Letters.pm | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index 7125148..35f10f9 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -634,6 +634,13 @@ sub _parseletter { > #but excludes items. Removed unneeded global and lookahead. > > my $replacedby = defined ($val) ? $val : ''; >+ if ( $replacedby and $replacedby =~ m|^\d{4}-\d{2}-\d{2}( \d{2}:\d{2}:\d{2})?$| ) { >+ # If the value is XXXX-YY-ZZ[ AA:BB:CC] we assume it is a date >+ eval { >+ $replacedby = output_pref({ dt => dt_from_string( $replacedby ), dateonly => 1 }); >+ }; >+ warn "$replacedby seems to be a date but an error occurs on generating it ($@)" if $@; >+ } > ($letter->{title} ) and do { > $letter->{title} =~ s/$replacetablefield/$replacedby/g; > $letter->{title} =~ s/$replacefield/$replacedby/g; >-- >1.7.10.4
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 10774
:
20534
|
20535
|
20710
|
23211
|
23212
|
24016
|
24017
|
24018