use syspref date format for manual due date
authorGalen Charlton <galen.charlton@liblime.com>
Thu, 20 Dec 2007 19:04:55 +0000 (13:04 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 21 Dec 2007 01:14:41 +0000 (19:14 -0600)
NOTE: will fail if user manages to enter date
in wrong format.  This is not a change from before
this patch, but is pointed out.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl

index 2fad429..e1f3e50 100755 (executable)
@@ -133,7 +133,7 @@ my $newexpiry = $query->param('dateexpiry');
 
 my ($datedue,$invalidduedate);
 if ($duedatespec) {
-       $datedue =  C4::Dates->new($duedatespec,'iso' );
+       $datedue =  C4::Dates->new($duedatespec);
        $invalidduedate=1 unless $datedue;
 }
 
index d4ac1d5..a10961a 100755 (executable)
@@ -226,7 +226,7 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
                      Calendar.setup(
                           {
                              inputField : "duedatespec",
-                             ifFormat : "%Y-%m-%d",
+                             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
                              button : "CalendarDueDate",
                              disableFunc : validate1,
                              dateStatusFunc : validate1,