[Koha-patches] [PATCH] [Bug 10184] Disable default sort on circ history

Colin Campbell colin.campbell at ptfs-europe.com
Fri May 3 16:48:25 CEST 2013


Issue data is passed to the readingrec templated ordered
most recent due date first. Datatables unless specified
otherwise do a presort on the data they will display
the default results in an order the reverse of what was
intended. Disabling the presort preserves the initial sort
order until the user selects a different sort
---
 koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
index 32c91a7..18f9060 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
@@ -14,6 +14,7 @@
     [% END %]
     $("#table_readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
         "sPaginationType": "four_button",
+        "aaSorting": []
     }));
  });
 //]]>
-- 
1.8.3.rc0.10.g8974033



More information about the Koha-patches mailing list