Can't mass delete entries
Brought to you by:
jberanek
Using the report page I can list many bookings, but after pressing the delete entries button nothing happens.
Inspecting it the error massage: reportTable.fnGetFilteredData is not a function
This is the code of report.js.php:
$('<button id="delete_button"><?php echo escape_js(get_vocab("delete_entries")) ?><\/button>')
.click(function() {
var data = reportTable.fnGetFilteredData(),
nEntries = data.length;
And the related code is in /jquery/datatables/js/plugins.js
$.fn.dataTableExt.oApi.fnGetFilteredData = function ( oSettings ) {
var a = [];
for ( var i=0, iLen=oSettings.aiDisplay.length ; i<iLen ; i++ ) {
a.push(oSettings.aoData[ oSettings.aiDisplay[i] ]._aData);
}
return a;
};
Thanks in advance.
Thanks for reporting this. I can confirm that I can reproduce the problem and I'll take a look.
I've now fixed this in the default branch with changeset 78c142e23822. The attached version of js/report.js.php should patch a 1.5.0 system.
Thank you, Campbell!
Meanwhile I modified the code in several files, so in my case now even the button isn't visible.
Replacing the report.js.php and the datatables plugins.js to the new ones don't solve my problem, so I can't see the button. show_bulk_delete was set to true, but if I remove this condition from here I can't see the button as well.
But this is my problem, I'm sure in a standard case it works well!