From 259ab22b18f67fa58eeb56713a34109908133a9c 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 (cherry picked from commit e5220bc6a130e7fe8a31739b98993b203cfee2b6) Signed-off-by: Fridolin Somers --- circ/returns.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index f41623c923..6173a55023 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -620,7 +620,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