[#133] Custom reports respect sorting in SQL

This commit is contained in:
Oliver Gorwits
2014-11-16 22:29:11 +00:00
parent f6ae7be611
commit a8208121c2
4 changed files with 13 additions and 0 deletions

View File

@@ -8,4 +8,14 @@
"search": '_INPUT_',
"searchPlaceholder": 'Filter records...',
"lengthMenu": "Show _MENU_ records."
},
"stateSaveParams": function (settings, data) {
// make sure filter is never saved
data.search.search = "";
// make sure paging position is not saved
data.start = 0;
[% IF is_custom_report %]
// disable sorting for custom reports
data.order = "";
[% END %]
}