[Koha-bugs] [Bug 28349] Date sorting incorrect in some tables

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 7 12:25:51 CEST 2021


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

--- Comment #6 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 125870
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=125870&action=edit
Bug 28349: (bug 26234 follow-up) Correct wrong array merge

Bug 26234 allowed to remove the different classes we use in aoColumnDefs
for sorting columns of table using DT.

However there is a terrible mistake, the merge of existing aoColumnDefs
array with the default one is totally wrong:
  $.extend(true, new_parameters, default_column_defs);
When we actually want
  $.extend(true, new_parameters["aoColumnDefs"], default_column_defs);

We want to merge default_column_defs with the existing aocolumnDefs.

This bug only exists when there is an existing aocolumnDefs.

See commit d3f3a55e0b1544ebcd3166d141e126a4324baab1
It happens on:
 * cataloguing/z3950_search.tt
 * reports/guided_reports_start.tt
 * serials/subscription-detail.tt
 * opac-course-reserves.tt
 * opac-detail.tt

However this bug has been hidden as we have in master related bug from
bug 27945, which removes title-string.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list