Merge branch '1994-Fallo-en-la-paginación-de-las-consolas-visuales' into 'develop'

Fix pagination in visual console list - #1994

See merge request artica/pandorafms!1335
This commit is contained in:
vgilc 2018-03-01 17:28:33 +01:00
commit f42151710b
1 changed files with 6 additions and 3 deletions

View File

@ -295,19 +295,22 @@ if ($own_info['is_admin'] || $vconsoles_read) {
$maps = visual_map_get_user_layouts (0,false,$filters,false);
unset($filters['offset']);
unset($filters['limit']);
$total_maps = count($maps);
$count_maps = visual_map_get_user_layouts (0,false,$filters,false);
$total_maps = count($count_maps);
}else{
$maps = visual_map_get_user_layouts (0,false,$filters, false);
unset($filters['offset']);
unset($filters['limit']);
$total_maps = count($maps);
$count_maps = visual_map_get_user_layouts (0,false,$filters,false);
$total_maps = count($count_maps);
}
}
else {
$maps = visual_map_get_user_layouts ($config['id_user'], false, $filters, false);
unset($filters['offset']);
unset($filters['limit']);
$total_maps = count($maps);
$count_maps = visual_map_get_user_layouts (0,false,$filters,false);
$total_maps = count($count_maps);
}
if (!$maps && !is_metaconsole()) {
$total = count(visual_map_get_user_layouts ($config['id_user'], false, false, false));