#9946 Fix url
This commit is contained in:
parent
5ca1c54792
commit
81610046e3
|
@ -31,6 +31,7 @@ global $config;
|
||||||
|
|
||||||
$method = get_parameter('method', null);
|
$method = get_parameter('method', null);
|
||||||
$filter = get_parameter('filter', '');
|
$filter = get_parameter('filter', '');
|
||||||
|
$urlDashboard = get_parameter('urlDashboard', '');
|
||||||
|
|
||||||
if ($method === 'draw') {
|
if ($method === 'draw') {
|
||||||
// Datatables offset, limit and order.
|
// Datatables offset, limit and order.
|
||||||
|
|
|
@ -91,7 +91,6 @@ if (empty($dashboards) === true) {
|
||||||
__('Favorite'),
|
__('Favorite'),
|
||||||
__('Full screen'),
|
__('Full screen'),
|
||||||
];
|
];
|
||||||
|
|
||||||
ui_print_datatable(
|
ui_print_datatable(
|
||||||
[
|
[
|
||||||
'id' => $id_table,
|
'id' => $id_table,
|
||||||
|
@ -100,7 +99,10 @@ if (empty($dashboards) === true) {
|
||||||
'columns' => $columns,
|
'columns' => $columns,
|
||||||
'column_names' => $column_names,
|
'column_names' => $column_names,
|
||||||
'ajax_url' => 'include/ajax/dashboard.ajax',
|
'ajax_url' => 'include/ajax/dashboard.ajax',
|
||||||
'ajax_data' => ['method' => 'draw'],
|
'ajax_data' => [
|
||||||
|
'method' => 'draw',
|
||||||
|
'urlDashboard' => $urlDashboard,
|
||||||
|
],
|
||||||
'default_pagination' => $config['block_size'],
|
'default_pagination' => $config['block_size'],
|
||||||
'no_sortable_columns' => [],
|
'no_sortable_columns' => [],
|
||||||
'order' => [
|
'order' => [
|
||||||
|
|
Loading…
Reference in New Issue