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

            Bug ID: 28561
           Summary: Order_by triggers a DBIx warning Unable to properly
                    collapse has_many results
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

Make a list, few biblios with multiple items.
Check the plack-opac-error.log

[2021/06/14 11:51:45] [WARN] Use of uninitialized value $direction in string ne
at /usr/share/koha/opac/opac-shelves.pl line 265.
[2021/06/14 11:51:45] [WARN] Use of uninitialized value $direction in string ne
at /usr/share/koha/opac/opac-shelves.pl line 265.
[2021/06/14 11:51:45] [WARN] DBIx::Class::ResultSet::_construct_results():
Unable to properly collapse has_many results in iterator mode due to order
criteria - performed an eager cursor slurp underneath. Consider using ->all()
instead at /usr/share/koha/Koha/Objects.pm line 335

Koha/Objects Line 335 says:
    my $result = $self->_resultset()->next();

The warning has to do with the sorting criteria. Disabling the order_by clause
removes the warning.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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/

Reply via email to