Lines 27-32
use CGI qw ( -utf8 );
Link Here
|
27 |
use C4::Output; |
27 |
use C4::Output; |
28 |
use C4::Reserves; |
28 |
use C4::Reserves; |
29 |
use C4::Auth; |
29 |
use C4::Auth; |
|
|
30 |
use Koha::DateUtils qw( dt_from_string ); |
30 |
|
31 |
|
31 |
my $query = new CGI; |
32 |
my $query = new CGI; |
32 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
33 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
Lines 72-84
else {
Link Here
|
72 |
my $params = { |
73 |
my $params = { |
73 |
rank => $rank[$i], |
74 |
rank => $rank[$i], |
74 |
reserve_id => $reserve_id[$i], |
75 |
reserve_id => $reserve_id[$i], |
75 |
expirationdate => $expirationdates[$i], |
76 |
expirationdate => $expirationdates[$i] ? dt_from_string($expirationdates[$i]) : undef, |
76 |
branchcode => $branch[$i], |
77 |
branchcode => $branch[$i], |
77 |
itemnumber => $itemnumber[$i], |
78 |
itemnumber => $itemnumber[$i], |
78 |
suspend_until => $suspend_until[$i] |
79 |
suspend_until => $suspend_until[$i] |
79 |
}; |
80 |
}; |
80 |
if (C4::Context->preference('AllowHoldDateInFuture')) { |
81 |
if (C4::Context->preference('AllowHoldDateInFuture')) { |
81 |
$params->{reservedate} = $reservedates[$i]; |
82 |
$params->{reservedate} = $reservedates[$i] ? dt_from_string($reservedates[$i]) : undef; |
82 |
} |
83 |
} |
83 |
|
84 |
|
84 |
ModReserve($params); |
85 |
ModReserve($params); |
85 |
- |
|
|