diff --git a/www/include/common/common-Func.php b/www/include/common/common-Func.php index 1a86842ef09..c88fcc9ce79 100644 --- a/www/include/common/common-Func.php +++ b/www/include/common/common-Func.php @@ -2208,11 +2208,12 @@ function reset_search_page($url) if (!isset($url)) { return; } - if (isset($_GET["search"]) && - isset($centreon->historySearch[$url]) && $_GET["search"] != $centreon->historySearch[$url] + if (isset($_GET['search']) && + isset($centreon->historySearch[$url]) && $_GET['search'] != $centreon->historySearch[$url] && + !isset($_GET['num']) && !isset($_POST['num']) ) { - $_POST["num"] = 0; - $_GET["num"] = 0; + $_POST['num'] = 0; + $_GET['num'] = 0; } }