[Koha-bugs] [Bug 13255] On-site checkout due date wrong if SpecifyDueDate is disabled

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 14 15:38:33 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13255

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Tying the on-site checkout due date to the template doesn't look like it can
work if the SpecifyDueDate preference is turned off. circulation.pl won't even
consider the date which gets passed if SpecifyDueDate is off:

circulation.pl line 160:

my $duedatespec_allow = C4::Context->preference('SpecifyDueDate');
if($duedatespec_allow){
    if ($duedatespec) {
        if ($duedatespec =~ C4::Dates->regexp('syspref')) {
                $datedue = dt_from_string($duedatespec);

Because of this it's probably better to calculate the custom due date for
on-site checkouts in circulation.pl based on the onsite_checkout checkbox
value.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list