[Koha-bugs] [Bug 26234] Default DataTables must know our own classes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 18 12:02:52 CEST 2020


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

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 108440
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108440&action=edit
Bug 26234: Teach our KohaTable constructor the specific th classes

We have different classes we can use to set specific behaviours on table
columns: title-string, string-sort, anti-the and NoSort.
We should not need to pass them to the DataTable constructor, we could teach it
that we always want to apply them.

It will avoid bug like bug 26233

The goal is to define them in a centralised place (columns_settings.inc) then
only use the class on the th

Test plan:
Different behaviour and tables must be tested to confirm it works correctly.
Focus must be put on table when aoColumnsDefs is passed from the template
and confirm that this will add more info to aoColumnsDefs and not remove
the existing ones.
Note that this only work when KohaTable is used.

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


More information about the Koha-bugs mailing list