Bug 5549 : Fix 'specify due date'
If due date is set generate a proper DateTime object for issue procesing
This commit is contained in:
parent
bc866c25f4
commit
1d62ea2c9f
1 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
# Copyright 2000-2002 Katipo Communications
|
||||
# copyright 2010 BibLibre
|
||||
# Copyright 2011 PTFS-Europe Ltd.
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
|
@ -145,8 +146,9 @@ my $duedatespec_allow = C4::Context->preference('SpecifyDueDate');
|
|||
if($duedatespec_allow){
|
||||
if ($duedatespec) {
|
||||
if ($duedatespec =~ C4::Dates->regexp('syspref')) {
|
||||
my $tempdate = C4::Dates->new($duedatespec);
|
||||
$datedue = $tempdate;
|
||||
$datedue = dt_from_string($duedatespec);
|
||||
$datedue->set_hour(23);
|
||||
$datedue->set_minute(59);
|
||||
} else {
|
||||
$invalidduedate = 1;
|
||||
$template->param(IMPOSSIBLE=>1, INVALID_DATE=>$duedatespec);
|
||||
|
|
Loading…
Reference in a new issue