Lines 908-915
sub ModReserve {
Link Here
|
908 |
|
908 |
|
909 |
my $rank = $params->{'rank'}; |
909 |
my $rank = $params->{'rank'}; |
910 |
my $reserve_id = $params->{'reserve_id'}; |
910 |
my $reserve_id = $params->{'reserve_id'}; |
911 |
my $reservedate = $params->{reservedate} || undef; |
|
|
912 |
my $expirationdate = $params->{expirationdate} || undef; |
913 |
my $branchcode = $params->{'branchcode'}; |
911 |
my $branchcode = $params->{'branchcode'}; |
914 |
my $itemnumber = $params->{'itemnumber'}; |
912 |
my $itemnumber = $params->{'itemnumber'}; |
915 |
my $suspend_until = $params->{'suspend_until'}; |
913 |
my $suspend_until = $params->{'suspend_until'}; |
Lines 938-954
sub ModReserve {
Link Here
|
938 |
logaction( 'HOLDS', 'MODIFY', $hold->reserve_id, Dumper($hold->unblessed) ) |
936 |
logaction( 'HOLDS', 'MODIFY', $hold->reserve_id, Dumper($hold->unblessed) ) |
939 |
if C4::Context->preference('HoldsLog'); |
937 |
if C4::Context->preference('HoldsLog'); |
940 |
|
938 |
|
941 |
$hold->set( |
939 |
my $properties = { |
942 |
{ |
940 |
priority => $rank, |
943 |
priority => $rank, |
941 |
branchcode => $branchcode, |
944 |
reservedate => $reservedate, |
942 |
itemnumber => $itemnumber, |
945 |
expirationdate => $expirationdate, |
943 |
found => undef, |
946 |
branchcode => $branchcode, |
944 |
waitingdate => undef |
947 |
itemnumber => $itemnumber, |
945 |
}; |
948 |
found => undef, |
946 |
if (exists $params->{reservedate}) { |
949 |
waitingdate => undef |
947 |
$properties->{reservedate} = $params->{reservedate} || undef; |
950 |
} |
948 |
} |
951 |
)->store(); |
949 |
if (exists $params->{expirationdate}) { |
|
|
950 |
$properties->{expirationdate} = $params->{expirationdate} || undef; |
951 |
} |
952 |
|
953 |
$hold->set($properties)->store(); |
952 |
|
954 |
|
953 |
if ( defined( $suspend_until ) ) { |
955 |
if ( defined( $suspend_until ) ) { |
954 |
if ( $suspend_until ) { |
956 |
if ( $suspend_until ) { |