Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Cp7 m58 fix service templates pagination (#6349)
Browse files Browse the repository at this point in the history
* fix(global): remove resetting of search num

* fix(global): add conditions to pagination resetting
  • Loading branch information
v-radev authored and kduret committed Jun 20, 2018
1 parent 273f548 commit 43973f1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions www/include/common/common-Func.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 43973f1

Please sign in to comment.