Bugzilla – Attachment 11728 Details for
Bug 8663
Circulation rules hard due date calendar wrong format
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[3.8.x] [SIGNED-OFF] Bug 8663 Fix the use of hardcoded date format for the calendar widget of hard due date
38x-SIGNED-OFF-Bug-8663-Fix-the-use-of-hardcoded-d.patch (text/plain), 2.28 KB, created by
Katrin Fischer
on 2012-08-21 20:53:24 UTC
(
hide
)
Description:
[3.8.x] [SIGNED-OFF] Bug 8663 Fix the use of hardcoded date format for the calendar widget of hard due date
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-08-21 20:53:24 UTC
Size:
2.28 KB
patch
obsolete
>From b1e0ead4c3e65d398c1573b9128f08f0e5e577de Mon Sep 17 00:00:00 2001 >From: Maxime Pelletier <maxime.pelletier@libeo.com> >Date: Wed, 30 May 2012 13:49:34 -0400 >Subject: [PATCH] [3.8.x] [SIGNED-OFF] Bug 8663 Fix the use of hardcoded date > format for the calendar widget of hard due date > >Sponsored by the CCSR > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Created circulation rules with different dateformat settings and hardduedate settings. >After applying the patch the calendar produces the correct fomats and rules are saved correctly. >Checking out an item to the hardduedate set works too. >--- > admin/smart-rules.pl | 3 ++- > .../prog/en/modules/admin/smart-rules.tt | 2 +- > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl >index 8e5a2d5..d208922 100755 >--- a/admin/smart-rules.pl >+++ b/admin/smart-rules.pl >@@ -498,7 +498,8 @@ $template->param(categoryloop => \@category_loop, > branchloop => \@branchloop, > humanbranch => ($branch ne '*' ? $branches->{$branch}->{branchname} : ''), > current_branch => $branch, >- definedbranch => scalar(@sorted_row_loop)>0 >+ definedbranch => scalar(@sorted_row_loop)>0, >+ DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar() > ); > output_html_with_http_headers $input, $cookie, $template->output; > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >index 635051f..98e3ef5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >@@ -172,7 +172,7 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde > Calendar.setup( > { > inputField : "hardduedate", >- ifFormat : "%m/%d/%Y", >+ ifFormat : "[% DHTMLcalendar_dateformat %]", > button : "CalendarDueDate", > onClose: refocus > } >-- >1.7.9.5
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 8663
:
11727
| 11728