[Koha-bugs] [Bug 24802] Updating holds can cause suspensions to apply to wrong hold
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Apr 9 22:36:44 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24802
--- Comment #8 from Lucas Gass <lucas at bywatersolutions.com> ---
My rebase:
else {
for (my $i=0;$i<$count;$i++){
undef $itemnumber[$i] if !$itemnumber[$i];
- ModReserve({
+ my $suspend_until = $query->param( "suspend_until_" . $reserve_id[$i]
);
+ my $params = {
rank => $rank[$i],
reserve_id => $reserve_id[$i],
branchcode => $branch[$i],
itemnumber => $itemnumber[$i],
- suspend_until => $suspend_until[$i]
- });
+ defined $suspend_until ? ( suspend_until => $suspend_until ) : (),
+ };
+ if (C4::Context->preference('AllowHoldDateInFuture')) {
+ $params->{reservedate} = $reservedates[$i] ?
dt_from_string($reservedates[$i]) : undef;
+ }
+
+ ModReserve($params);
}
}
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list