[Koha-bugs] [Bug 34107] Sorting agreements by Name actually sorts by ID

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jul 5 13:37:45 CEST 2023


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

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #153020|0                           |1
        is obsolete|                            |

--- Comment #10 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 153052
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153052&action=edit
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 at bugs.koha-community.org>

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


More information about the Koha-bugs mailing list