Test plan:
1) Apply all patches except this one
2) Checkout out an item to a patron
3) Check the item in - note that this will fail
4) Apply this patch, and repeat steps 1-3, noting instead that the the
check is instead successful
5) Verify also that reserves act as expected
5) Sign off
Sponsored-by: Catalyst IT
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>
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' );
my $sth_set = $dbh->prepare($query);
$sth_set->execute( $newstatus, $itemnumber );
- my $item = GetItem($itemnumber);
+ my $item = Koha::Items->find($itemnumber);
if ( ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART' ) && $newstatus ) {
CartToShelf( $itemnumber );
}
if ( !$transferToDo && !$already_on_shelf );
_FixPriority( { biblionumber => $biblionumber } );
- my $item = GetItem($itemnumber);
+ my $item = Koha::Items->find($itemnumber);
if ( ( $item->{'location'} eq 'CART' && $item->{'permanent_location'} ne 'CART' ) ) {
CartToShelf( $itemnumber );
}