]> git.koha-community.org Git - koha.git/commit
Bug 34107: Switch order for id and name feeding the first column in datatables
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Tue, 4 Jul 2023 15:26:27 +0000 (15:26 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Jul 2023 15:24:18 +0000 (12:24 -0300)
commitf3cc00d945ecdd74f84c9183e3fb9655248b0e68
treeb9a28186d6a9198bfe0acd1168edddc67f02cfa3
parent720dec3f4567f5ff7cbc01b7f7bbe52a21b7244d
Bug 34107: Switch order for id and name feeding the first column in datatables

Test plan:
* Create 3 agreements, agreement #1 named 'a', agreement #2 named 'c' and agreement #3 named 'b'.
* Go to agreements list, click the Name column header, notice how the agreements get sorted by id #, not by first char in name. Expected order would be abc or cba, but it's acb or bca.
* Apply patch, on k-t-d, run the following if you're not using 'yarn js:watch':
    yarn js:build
* Sort the list again on the 'name' column, notice how it now sorts alphabetically as expected, either abc or cba.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue