From e5220bc6a130e7fe8a31739b98993b203cfee2b6 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 Signed-off-by: Katrin Fischer Signed-off-by: Julian Maurice Signed-off-by: Jonathan Druart --- circ/returns.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index 9d04dc1ff5..b26be73961 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -567,7 +567,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.39.5