Bug 9182: fix on sortable columns on Saved reports
authorAdrien Saurat <adrien.saurat@biblibre.com>
Fri, 4 Jan 2013 16:07:40 +0000 (17:07 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 15 Jan 2013 04:23:59 +0000 (23:23 -0500)
When displaying the Saved reports, since 3.10 the number of columns is
higher but the datasorter parameters have not been changed accordingly.
It's thus impossible to sort on the author or the creation date, for
example.

TEST PLAN :
1) Check sortable columns before applying : some useful columns are not
sortable, while the last columns are sortable (but don't need to be).

2) Once the patch is applied, the "non sortable" columns are the correct
ones.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Colums for saved reports are all sortable correctly now.
All tests and qa script pass.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt

index fa0ae38..c055b2b 100644 (file)
@@ -65,11 +65,10 @@ $(document).ready(function(){
     widgets : ['zebra'],
     sortList: [[1,0]],
     headers: {
-       6: { sorter: false},
-       7: { sorter: false},
-       8: { sorter: false},
-       9: { sorter: false},
-      10: { sorter: false}
+        10: { sorter: false},
+        11: { sorter: false},
+        12: { sorter: false},
+        13: { sorter: false}
     }
   }).tablesorterPager({
     container:     $("#pagertable_reports"),