Bugzilla – Attachment 100461 Details for
Bug 24839
branchtransfers does not deal with holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24839: Return hold info to transfer script and set borrowernumber
Bug-24839-Return-hold-info-to-transfer-script-and-.patch (text/plain), 1.44 KB, created by
Nick Clemens (kidclamp)
on 2020-03-10 14:02:38 UTC
(
hide
)
Description:
Bug 24839: Return hold info to transfer script and set borrowernumber
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-03-10 14:02:38 UTC
Size:
1.44 KB
patch
obsolete
>From 6eeba476ee73b2f8f0d6867673f81f90b5956fc3 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 10 Mar 2020 09:37:56 -0400 >Subject: [PATCH] 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) >--- > C4/Circulation.pm | 3 +-- > circ/branchtransfers.pl | 1 + > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 8037101086..d506e72a14 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -354,8 +354,7 @@ sub transferbook { > CheckReserves( $itemnumber ); > if ( $resfound and not $ignoreRs ) { > $resrec->{'ResFound'} = $resfound; >- >- # $messages->{'ResFound'} = $resrec; >+ $messages->{'ResFound'} = $resrec; > $dotransfer = 1; > } > >diff --git a/circ/branchtransfers.pl b/circ/branchtransfers.pl >index a8637ceba8..ddca4f5e4d 100755 >--- a/circ/branchtransfers.pl >+++ b/circ/branchtransfers.pl >@@ -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; >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24839
:
100459
|
100460
|
100461
|
100481
|
100482
|
100542
|
100543
|
100544