@@ -, +, @@
accepting it
---
C4/Circulation.pm | 4 ++--
circ/branchtransfers.pl | 3 +--
.../intranet-tmpl/prog/en/modules/circ/branchtransfers.tt | 3 +--
3 files changed, 4 insertions(+), 6 deletions(-)
--- a/C4/Circulation.pm
+++ a/C4/Circulation.pm
@@ -375,10 +375,10 @@ sub transferbook {
# That'll save a database query.
my ( $resfound, $resrec, undef ) =
CheckReserves( $itemnumber );
- if ( $resfound and not $ignoreRs ) {
+ if ( $resfound ) {
$resrec->{'ResFound'} = $resfound;
$messages->{'ResFound'} = $resrec;
- $dotransfer = 1;
+ $dotransfer = 0 unless $ignoreRs;
}
#actually do the transfer....
--- a/circ/branchtransfers.pl
+++ a/circ/branchtransfers.pl
@@ -127,7 +127,6 @@ defined $barcode and $barcode =~ s/^\s*|\s*$//g; # FIXME: barcodeInputFilter
if ($barcode) {
( $transferred, $messages ) =
-
transferbook({
from_branch => C4::Context->userenv->{'branch'},
to_branch => $tobranchcd,
@@ -136,7 +135,7 @@ if ($barcode) {
trigger => 'Manual'
});
my $item = Koha::Items->find({ barcode => $barcode });
- $found = $messages->{'ResFound'};
+ $found = $messages->{'ResFound'} unless $settransit;
if ($transferred) {
my %trsfitem;
my $frbranchcd = C4::Context->userenv->{'branch'};
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt
@@ -67,8 +67,8 @@
+
[% IF ( waiting or transferred or processing ) %]
-
[% END %]
@@ -93,7 +93,6 @@
-
--