2013-08-30 Miguel de Dios <miguel.dedios@artica.es>

* godmode/groups/group_list.php: fixed pagination mismatch.
	
	Fixes: #2383




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8716 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-08-30 06:44:37 +00:00
parent 1ebaeac2e5
commit 602ceb1941
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2013-08-30 Miguel de Dios <miguel.dedios@artica.es>
* godmode/groups/group_list.php: fixed pagination mismatch.
Fixes: #2383
2013-08-29 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_snmp_browser.php: fixed PHP warnings.

View File

@ -311,13 +311,14 @@ if (!empty($groups)) {
if ($stop == 0) {
$stop = $start + $config['block_size'] + 1;
}
// 1 for to add all group
ui_pagination($count_visible_groups + 1, false, 0, $config['block_size']);
$pagination_element = ui_pagination($count_visible_groups + 1,
false, 0, $config['block_size'], true);
$groups = array_slice($groups, $start, ($stop - $start));
$groups = array_merge(array($all_group), $groups);
foreach ($groups as $id_group => $group) {
if ($group['deep'] == 0) {
$table->rowstyle[$iterator] = '';
@ -421,9 +422,11 @@ if (!empty($groups)) {
$iterator++;
}
echo $pagination_element;
html_print_table ($table);
ui_pagination($count_visible_groups + 1, false, 0, $config['block_size'] - 1);
echo $pagination_element;
}
else {
echo "<div class='nf'>".__('There are no defined groups')."</div>";