@@ -, +, @@ context $ kshell k$ prove t/db_dependent/Koha/Objects.t resultset intead of empty or individual items. k$ probe t/db_dependent/Koha/Biblio.t $biblio->items->as_list and doesn't break. It implies that the change won't break any Koha place in which ->as_list is being used on a resultset created by _new_from_dbic --- Koha/Objects.pm | 5 +++++ 1 file changed, 5 insertions(+) --- a/Koha/Objects.pm +++ a/Koha/Objects.pm @@ -67,6 +67,11 @@ my $object = Koha::Objects->_new_from_dbic( $resultset ); sub _new_from_dbic { my ( $class, $resultset ) = @_; + + if ( wantarray ) { + return $class->_wrap( $resultset->all() ); + } + my $self = { _resultset => $resultset }; bless( $self, $class ); --