@@ -, +, @@ --- C4/Items.pm | 2 -- t/db_dependent/Items.t | 14 +------------- 2 files changed, 1 insertion(+), 15 deletions(-) --- a/C4/Items.pm +++ a/C4/Items.pm @@ -750,8 +750,6 @@ sub GetItemsInfo { holding.branchurl, holding.branchcode, holding.branchname, - holding.opac_info as holding_branch_opac_info, - home.opac_info as home_branch_opac_info, IF(tmp_holdsqueue.itemnumber,1,0) AS has_pending_hold FROM items LEFT JOIN branches AS holding ON items.holdingbranch = holding.branchcode --- a/t/db_dependent/Items.t +++ a/t/db_dependent/Items.t @@ -192,7 +192,7 @@ subtest 'ModItemTransfer tests' => sub { subtest 'GetItemsInfo tests' => sub { - plan tests => 9; + plan tests => 7; $schema->storage->txn_begin; @@ -230,21 +230,9 @@ subtest 'GetItemsInfo tests' => sub { } )->itemnumber; - my $library = Koha::Libraries->find( $library1->{branchcode} ); - $library->opac_info("homebranch OPAC info"); - $library->store; - - $library = Koha::Libraries->find( $library2->{branchcode} ); - $library->opac_info("holdingbranch OPAC info"); - $library->store; - my @results = GetItemsInfo( $biblio->biblionumber ); ok( @results, 'GetItemsInfo returns results'); - is( $results[0]->{ home_branch_opac_info }, "homebranch OPAC info", - 'GetItemsInfo returns the correct home branch OPAC info notice' ); - is( $results[0]->{ holding_branch_opac_info }, "holdingbranch OPAC info", - 'GetItemsInfo returns the correct holding branch OPAC info notice' ); is( exists( $results[0]->{ onsite_checkout } ), 1, 'GetItemsInfo returns a onsite_checkout key' ); is( $results[0]->{ restricted }, 1, --