Bug 24839: Return hold info to transfer script and set borrowernumber

To test:
1 - Place a hold on an item
2 - Go to Circulation->Transfers
3 - Attempt to transfer item to a branch it is not expected at
4 - No warning
5 - Apply patches
6 - Repeate
7 - You get a notice that there is a hold and must deal with the hold (or ignore)

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Nick Clemens 2020-03-10 09:37:56 -04:00 committed by Martin Renvoize
parent 2c3b0f4d57
commit 218012812d
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 2 additions and 2 deletions

View File

@ -354,8 +354,7 @@ sub transferbook {
CheckReserves( $itemnumber );
if ( $resfound and not $ignoreRs ) {
$resrec->{'ResFound'} = $resfound;
# $messages->{'ResFound'} = $resrec;
$messages->{'ResFound'} = $resrec;
$dotransfer = 1;
}

View File

@ -185,6 +185,7 @@ my $biblionumber;
if ($found) {
my $res = $messages->{'ResFound'};
$itemnumber = $res->{'itemnumber'};
$borrowernumber = $res->{'borrowernumber'};
if ( $res->{'ResFound'} eq "Waiting" ) {
$waiting = 1;