Bug 14576: Rebase fixes Fix test Rebase code
[koha.git] / t / db_dependent / Circulation / issue.t
index 31dd457..e945876 100644 (file)
@@ -418,7 +418,7 @@ $item2 = Koha::Items->find( $itemnumber2 );
 ok( $item2->location eq 'PROC' , q{UpdateItemLocationOnCheckin updates location value from '' to 'PROC' with setting "_BLANK_: PROC"} );
 ok( $item2->permanent_location eq '' , q{UpdateItemLocationOnCheckin does not update permanent_location value from '' to 'PROC' with setting "_BLANK_: PROC"} );
 AddReturn( 'barcode_4', $branchcode_1 );
-$item2 = Koha::Items( $itemnumber2 );
+$item2 = Koha::Items->find( $itemnumber2 );
 ok( $item2->location eq '' , q{UpdateItemLocationOnCheckin updates location value from 'PROC' to '' with setting "PROC: _PERM_" } );
 ok( $item2->permanent_location eq '' , q{UpdateItemLocationOnCheckin does not update permanent_location from '' with setting "PROC: _PERM_" } );