From 30280f7a9f3acccc8e3029a9f92c5b75c4ca1261 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Sun, 20 Mar 2016 23:47:30 +0000 Subject: [PATCH] Bug 15196: Default sorting of patron lists This patch sorts users by surname. Also string fix -> Firstname to First name in column heading To test: 1) Go to a patron list 2) Confirm it is sorted by surname 3) Add a patron that will need to slot in the middle somewhere 4) Confirm the data table sorts it correctly 5) Confirm column heading change Sponsored-by: Catalyst IT Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt index 27b68a7..a2b3d94 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt @@ -14,6 +14,7 @@ $(document).ready(function() { $('#patrons_to_add_fieldset').hide(); $('#patron-list-table').dataTable($.extend(true, {}, dataTablesDefaults, { + "order": [[ 3, "asc" ]], "aoColumns": [ null,null,null,null,null,null,null,{ "sType": "title-string" },null ], @@ -111,7 +112,7 @@ $(document).ready(function() {   Card - Firstname + First name Surname Address Category -- 2.7.0