Bug 32030: Fix datatable.js order_by
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 23 May 2022 09:29:29 +0000 (11:29 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Nov 2022 12:43:58 +0000 (09:43 -0300)
commit802e9d21d45dcd1c709c0c8ce9ed91b33db59cae
tree4878a413cbc559dd7e2c56dbe97df83dec30e819
parent8e0f5fb3fe43b097a003ad54235a46d0987d4a8b
Bug 32030: Fix datatable.js order_by

Getting Uncaught (in promise) TypeError: order_by.split is not a function
Because data is an array: "data": ["me.package_id", "me.name"],

If we modify it with "data": "me.package_id:me.name",
(what we are using in other places) we are getting the following warning
when the table is init:
"Requested unknown parameter 'me.package_id:me.name' for row 0, column 0. For more information about this error"

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/datatables.js