From fc49467fb46fc39698f7f197992f20fec0a23413 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 2 Nov 2015 11:46:32 -0500 Subject: [PATCH] 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 --- .../prog/en/modules/members/member.tt | 1 + 1 files changed, 1 insertions(+), 0 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 603920b..cede308 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -148,6 +148,7 @@ $(document).ready(function() { dtMemberResults = KohaTable("#memberresultst", { 'bServerSide': true, 'sAjaxSource': "/cgi-bin/koha/svc/members/search", + 'order': [[ 2, 'asc' ]], 'fnServerData': function(sSource, aoData, fnCallback) { if ( ! search ) { return; -- 1.7.2.5