Should be possible to release and act in same day.

This commit is contained in:
Bradley M. Kuhn 2017-01-10 11:22:24 -08:00
parent 18ccb9d152
commit 33e2a42179

View file

@ -1129,7 +1129,7 @@ sub getRequest($$;$) {
$self->dbh->quote($requestId, 'SQL_INTEGER'), $self->dbh->quote($requestId, 'SQL_INTEGER'),
'request_id'); 'request_id');
if (defined $holdReq and defined $holdReq->{$requestId} and defined $holdReq->{$requestId}{id}) { if (defined $holdReq and defined $holdReq->{$requestId} and defined $holdReq->{$requestId}{id}) {
return undef if $ignoreHeldRequests and ($TODAY le $holdReq->{$requestId}{release_date}); return undef if $ignoreHeldRequests and ($TODAY lt $holdReq->{$requestId}{release_date});
$rsp->{holdDate} = $holdReq->{$requestId}{hold_date}; $rsp->{holdDate} = $holdReq->{$requestId}{hold_date};
$rsp->{holdReleaseDate} = $holdReq->{$requestId}{release_date}; $rsp->{holdReleaseDate} = $holdReq->{$requestId}{release_date};
$rsp->{holder} = $holdReq->{$requestId}{who}; $rsp->{holder} = $holdReq->{$requestId}{who};