Bug 20546: Display shelving location on checkin

Currently, the sehlving location is not being displayed in the table
of checked in items on <intranet>/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 <katrin.fischer.83@web.de>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Magnus Enger 2018-04-09 12:39:23 +02:00 committed by Jonathan Druart
parent b6c739ae9c
commit e5220bc6a1
1 changed files with 1 additions and 1 deletions

View File

@ -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} ) );