https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16965

--- Comment #4 from Marcel de Rooy <[email protected]> ---
(In reply to Jonathan Druart from comment #3)
> (In reply to Marcel de Rooy from comment #2)
> > Shouldn't you wrap them like search does ?
> 
> I don't think so:
> "In list context, ->all() is called implicitly on the resultset, thus
> returning a list of result objects instead."
> https://metacpan.org/pod/DBIx::Class::ResultSet#search_related

I mean the other search:
sub search {
    my ( $self, $params, $attributes ) = @_;

    if (wantarray) {
        my @dbic_rows = $self->_resultset()->search($params, $attributes);

        return $self->_wrap(@dbic_rows);
etc.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://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/

Reply via email to