From 8b12e29dc417967bd1761c59d3a8ee5556e53d8b 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 Followed test plan. Worked as expecting (after a browser reload). Signed-off-by: Marc VĂ©ron --- koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 1 + 1 file changed, 1 insertion(+) 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.10.4