[Koha-bugs] [Bug 28561] New: Order_by triggers a DBIx warning Unable to properly collapse has_many results
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jun 14 13:55:30 CEST 2021
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: koha-bugs at lists.koha-community.org
Reporter: m.de.rooy at rijksmuseum.nl
QA Contact: testopia at bugs.koha-community.org
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.
More information about the Koha-bugs
mailing list