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