[Koha-bugs] [Bug 27680] API DataTables Wrapper fails for ordering on multi-data-field columns

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 12 11:15:02 CET 2021


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

--- Comment #6 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Jonathan Druart from comment #4)
> (In reply to Jonathan Druart from comment #3)
> > Created attachment 116796 [details] [review] [review]
> > Bug 27680: Take first order column for ordering
> 
> We can go with this patch for now.
> 
> Are the REST API routes support ordering on several attributes?

Looks like we do

 95                 if ( reftype($order_by) and reftype($order_by) eq 'ARRAY' )
{

So either we go first with this quick fix, or we need to implement it for the
DT API wrapper.

Currently it does not work if you select more than 1 column.

-- 
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