From 626111279b545b7636c8421db1dfe4ef3a969501 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Mon, 8 May 2017 16:55:05 +0200 Subject: [PATCH] Pagination links include delete, create and other params, now not use these params, and not retry the previous action - #826 --- pandora_console/include/functions_ui.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index bbfb2649e1..c20c4b073f 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -1611,6 +1611,17 @@ function ui_pagination ($count, $url = false, $offset = 0, $url = ui_get_url_refresh (array ($offset_name => false)); } + // Pagination links for users include delete, create and other params, now not use these params, and not retry the previous action when go to pagination link. + + $remove = array("user_del","disable_user","delete_user"); + $finalUrl = $config['homeurl'].'?'; + foreach($_GET as $index => $get){ + if(!in_array($index, $remove)){ + $finalUrl .= $index.'='.$get.'&'; + } + } + $url = $finalUrl; + /* URL passed render links with some parameter &offset - Offset records passed to next page