use syspref date format for manual due date
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>
This commit is contained in:
parent
af0b208bdf
commit
26fa7bf58d
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue