Bug 14576: (follow-up) Using item objects, not hashrefs

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2019-03-27 11:36:47 +00:00
parent 23a12cf4d8
commit a2b805a0df
2 changed files with 3 additions and 3 deletions

View file

@ -549,7 +549,7 @@ sub ModItemTransfer {
my $item = Koha::Items->find( $itemnumber );
# Remove the 'shelving cart' location status if it is being used.
CartToShelf( $itemnumber ) if ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART' );
CartToShelf( $itemnumber ) if ( $item->location eq 'CART' && $item->permanent_location ne 'CART' );
$dbh->do("UPDATE branchtransfers SET datearrived = NOW(), comments = ? WHERE itemnumber = ? AND datearrived IS NULL", undef, "Canceled, new transfer from $frombranch to $tobranch created", $itemnumber);

View file

@ -1030,7 +1030,7 @@ sub ModReserveStatus {
$sth_set->execute( $newstatus, $itemnumber );
my $item = Koha::Items->find($itemnumber);
if ( ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART' ) && $newstatus ) {
if ( ( $item->location eq 'CART' && $item->permanent_location ne 'CART' ) && $newstatus ) {
CartToShelf( $itemnumber );
}
}
@ -1083,7 +1083,7 @@ sub ModReserveAffect {
_FixPriority( { biblionumber => $biblionumber } );
my $item = Koha::Items->find($itemnumber);
if ( ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART' ) ) {
if ( ( $item->location eq 'CART' && $item->permanent_location ne 'CART' ) ) {
CartToShelf( $itemnumber );
}