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

fix(pagination) fix pagination display in service monitoring #7755

Merged
merged 1 commit into from
Aug 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
$tabH = array();
$tabHG = array();
$tab_finalH = array();
$numRows = $DBRESULT->rowCount();
$numRows = $obj->DBC->query("SELECT FOUND_ROWS()")->fetchColumn();
while ($ndo = $DBRESULT->fetch()) {
if (!isset($tab_finalH[$ndo["alias"]])) {
$tab_finalH[$ndo["alias"]] = array($ndo["host_name"] => array());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
}
}
$DBRESULT->execute();
$numRows = $DBRESULT->rowCount();
$numRows = $obj->DBC->query("SELECT FOUND_ROWS()")->fetchColumn();

$class = "list_one";
$ct = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
}
}
$DBRESULT->execute();
$numRows = $DBRESULT->rowCount();
$numRows = $obj->DBC->query("SELECT FOUND_ROWS()")->fetchColumn();

// Create XML Flow
$obj->XML = new CentreonXML();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@

$DBRESULT = $obj->DBC->query($query);

$numRows = $obj->DBC->numberRows();
$numRows = $obj->DBC->query("SELECT FOUND_ROWS()")->fetchColumn();


/** ***************************************************
Expand Down