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:
parent
2c3b0f4d57
commit
218012812d
|
|
@ -354,8 +354,7 @@ sub transferbook {
|
|||
CheckReserves( $itemnumber );
|
||||
if ( $resfound and not $ignoreRs ) {
|
||||
$resrec->{'ResFound'} = $resfound;
|
||||
|
||||
# $messages->{'ResFound'} = $resrec;
|
||||
$messages->{'ResFound'} = $resrec;
|
||||
$dotransfer = 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue