From 884a50901dac7e271ad588c5b361380baf370804 Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Mon, 9 Apr 2018 12:39:23 +0200 Subject: [PATCH] Bug 20546: Display shelving location on checkin Currently, the sehlving location is not being displayed in the table of checked in items on /cgi-bin/koha/circ/returns.pl To test: - Make sure you have a couple of books with a value for shelving location (952$c) - Check the books out - Check the books in - Verify nothing is displayed in the "Shelving location" column - Apply this patch - Check the books out and in again - Verify the shelving location is now being displayed --- circ/returns.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index 162f8fd..c562d56 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -569,7 +569,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { $ri{homebranch} = $item->homebranch; $ri{holdingbranch} = $item->holdingbranch; - $ri{location} = $biblio->{'location'}; + $ri{location} = $item->location; my $shelfcode = $ri{'location'}; $ri{'location'} = $shelflocations->{$shelfcode} if ( defined( $shelfcode ) && defined($shelflocations) && exists( $shelflocations->{$shelfcode} ) ); -- 2.7.4