https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22690
--- Comment #125 from Joonas Kylmälä <[email protected]> --- To debug the remaining warning I added the following lines to TestBuilder.pm > use Data::Dumper; > warn "$linked_tbl with " . Dumper($fk_value) if $linked_tbl eq 'Item'; this is just above the line: > return {} if $self->schema->resultset($linked_tbl)->find( $fk_value ); inside _create_links(). The output I got when running the test then with this is as follows: > Item with $VAR1 = { > 'itemnumber' => 1773 > }; > Item with $VAR1 = { > 'biblionumber' => 1234 > }; > DBIx::Class::Storage::DBI::select_single(): Query returned more than one row. > > SQL that returns multiple rows is DEPRECATED for ->find and ->single at > /kohadevbox/koha/t/lib/TestBuilder.pm line 239 So for some reason where are using ->find() in TestBuilder.pm even for non-primary keys (here 'biblionumber' of items table) and that causes problems. I haven't still gotten to the bottom of this so any help is still welcome to resolve this. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
