Merge branch 'ent-11754-15970-error-de-paginacion-de-custom_graphs' into 'develop'

Ent 11754 15970 error de paginacion de custom graphs

See merge request artica/pandorafms!6267
This commit is contained in:
Rafael Ameijeiras 2023-07-25 07:52:11 +00:00
commit 458226e24d
1 changed files with 28 additions and 4 deletions

View File

@ -488,14 +488,38 @@ if (!empty($graphs)) {
true
);
$ActionButtons[] = '</form>';
$offset = (int) get_parameter('offset', 0);
$block_size = (int) $config['block_size'];
$tablePagination = ui_pagination(
count($graphs),
false,
$offset,
$block_size,
true,
'offset',
false
);
}
// FALTA METER EL PRINT TABLE.
html_print_table($table);
html_print_action_buttons(
implode('', $ActionButtons),
['type' => 'form_action']
);
if (is_metaconsole() === true) {
html_print_action_buttons(
implode('', $ActionButtons),
['type' => 'form_action']
);
} else {
html_print_action_buttons(
implode('', $ActionButtons),
[
'type' => 'form_action',
'right_content' => $tablePagination,
]
);
}
}
echo '</div>';