Bug 24297: Record 'Manual' trigger transfers
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 17 Jan 2020 11:25:28 +0000 (11:25 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 20 Mar 2020 16:04:07 +0000 (16:04 +0000)
To test:
1 - Apply patches, restart_all
2 - Gi to Circulation->Transfer
3 - Transfer an item
4 - Check the branch transfers table
5 - The reason is set to 'Manual'

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

circ/branchtransfers.pl

index ddca4f5..ea9b289 100755 (executable)
@@ -127,7 +127,7 @@ defined $barcode and $barcode =~ s/^\s*|\s*$//g;  # FIXME: barcodeInputFilter
 if ($barcode) {
 
     ( $transferred, $messages ) =
-      transferbook( $tobranchcd, $barcode, $ignoreRs );
+      transferbook( $tobranchcd, $barcode, $ignoreRs, 'Manual' );
     my $item = Koha::Items->find({ barcode => $barcode });
     $found = $messages->{'ResFound'};
     if ($transferred) {