mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
changed form of pagination in reports.
This commit is contained in:
parent
064ef44dcf
commit
0ca9868cff
@ -441,8 +441,6 @@ switch ($action) {
|
||||
else {
|
||||
$group = false;
|
||||
}
|
||||
$filter['offset'] = $offset;
|
||||
$filter['limit'] = $pagination;
|
||||
|
||||
// Filter normal and metaconsole reports
|
||||
if ($config['metaconsole'] == 1 and defined('METACONSOLE'))
|
||||
@ -460,9 +458,6 @@ switch ($action) {
|
||||
'id_group',
|
||||
'non_interactive'), $return_all_group, 'RR', $group, $strict_user);
|
||||
|
||||
|
||||
unset($filter['offset']);
|
||||
unset($filter['limit']);
|
||||
$total_reports = (int) count(reports_get_reports ($filter,
|
||||
array ('name'), $return_all_group, 'RR', $group, $strict_user));
|
||||
|
||||
@ -527,6 +522,9 @@ switch ($action) {
|
||||
|
||||
}
|
||||
$columnview = false;
|
||||
|
||||
$reports = array_slice($reports, $offset, $pagination);
|
||||
|
||||
foreach ($reports as $report) {
|
||||
|
||||
if (!is_user_admin ($config["id_user"])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user