Bug 15109 - Regression in patron search results ordering

In Koha 3.16 or earlier, before the introduction of the ajax datatable
for patron searching, the search results were ordered by name. In
master, the results are currently ordered by cardnumber, which is not
very useful.

Test Plan:
1) Do a "browse by last name" or a patron search
2) Note the results are sorted by card number
3) Apply this patch
4) Reload the page, start a new search
5) Note the results are sorted by name

Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2015-11-13 09:17:49 +00:00 committed by Tomas Cohen Arazi
parent be1ed52186
commit cc65a5fed2
1 changed files with 2 additions and 2 deletions

View File

@ -222,9 +222,9 @@ $(document).ready(function() {
'bFilter': false,
'bAutoWidth': false,
[% IF CAN_user_tools_manage_patron_lists %]
'aaSorting': [[1, 'asc']],
'aaSorting': [[2, 'asc']],
[% ELSE %]
'aaSorting': [[0, 'asc']],
'aaSorting': [[1, 'asc']],
[% END %]
"aLengthMenu": [aLengthMenu, aLengthMenuLabel],
'sPaginationType': 'full_numbers',