From 3ae124e6af22472586258e10688dce8b26827442 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 13 Nov 2015 09:17:49 +0000 Subject: [PATCH] Bug 15109 - Regression in patron search results ordering MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit cc65a5fed2afd27b2a45af49d6fe08d54fef7de9) Signed-off-by: Frédéric Demians (cherry picked from commit 1524cb1119db421bd67a22e461cb53bdadd75ec7) Signed-off-by: Liz Rea --- koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index c7ddabad3c..1c7e5506f0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -217,9 +217,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', -- 2.39.5