This commit is contained in:
miguel angel rasteu 2023-09-04 10:58:15 +02:00
parent 5ca1c54792
commit 81610046e3
2 changed files with 5 additions and 2 deletions

View File

@ -31,6 +31,7 @@ global $config;
$method = get_parameter('method', null);
$filter = get_parameter('filter', '');
$urlDashboard = get_parameter('urlDashboard', '');
if ($method === 'draw') {
// Datatables offset, limit and order.

View File

@ -91,7 +91,6 @@ if (empty($dashboards) === true) {
__('Favorite'),
__('Full screen'),
];
ui_print_datatable(
[
'id' => $id_table,
@ -100,7 +99,10 @@ if (empty($dashboards) === true) {
'columns' => $columns,
'column_names' => $column_names,
'ajax_url' => 'include/ajax/dashboard.ajax',
'ajax_data' => ['method' => 'draw'],
'ajax_data' => [
'method' => 'draw',
'urlDashboard' => $urlDashboard,
],
'default_pagination' => $config['block_size'],
'no_sortable_columns' => [],
'order' => [