Bug 14576: Replaced calls using deprecated method GetItem with Koha::Items->find
[koha.git] / C4 / Items.pm
index f4e2d14..69dc4d1 100644 (file)
@@ -546,7 +546,7 @@ sub ModItemTransfer {
     my ( $itemnumber, $frombranch, $tobranch ) = @_;
 
     my $dbh = C4::Context->dbh;
-    my $item = GetItem( $itemnumber );
+    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' );