@@ -, +, @@ recall circ rule is empty --- opac/opac-recall.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/opac/opac-recall.pl +++ a/opac/opac-recall.pl @@ -87,8 +87,12 @@ if ($op eq 'request'){ my $recall = Koha::Recalls->find($recall_request->recall_id); # updating due date on checkout my $timestamp = dt_from_string($recall->timestamp); - my $due_date = $timestamp->add( $issuing_rule->lengthunit => $issuing_rule->recall_due_date_interval ); - $checkout->update({ date_due => $due_date }); + if ($issuing_rule->recall_due_date_interval eq '') { + my $due_date = $timestamp->add( $issuing_rule->lengthunit => 0 ); + } else { + my $due_date = $timestamp->add( $issuing_rule->lengthunit => $issuing_rule->recall_due_date_interval); + } + my $checkout = Koha::Checkouts->find({ itemnumber = $itemnumber })->update({ date_due => $due_date }); my $checkout_borrower = $checkout->patron; # send notice to user with recalled item checked out --