From adec693ed8b8f0e7f56fb3ba5a283c8a9e4014f2 Mon Sep 17 00:00:00 2001 From: Chloe Date: Wed, 20 Jan 2016 23:08:25 +0000 Subject: [PATCH] Bug 15583 - List of lists in the staff client should have a default sort To Test: 1- first make sure you have lists from different dates, -- if you dont you can go to databases and change the created_on date (by changing the date on the database you can also ensure that the shelfnumber doesn't align with the creation date, replicating the bug being fixed.) 2- after making lists apply patch and refresh page, the lists should be sorted by creation date by default instead of by the "shelfnumber" Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Brendan A Gallagher --- .../intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 7f1e8488ab..f2410a18f3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -37,6 +37,8 @@ $(document).ready(function(){ var type = [% PRIVATE %]; [% END %] var dtListResults = $("#listresultst").dataTable($.extend(true, {}, dataTablesDefaults, { + + "aaSorting": [[ 5, "asc" ]], 'bServerSide': true, 'sAjaxSource': "/cgi-bin/koha/svc/virtualshelves/search", 'fnServerData': function(sSource, aoData, fnCallback) { -- 2.39.5