Private GIT

Skip to content
Snippets Groups Projects
Commit 05cf6396 authored by Kevin Duret's avatar Kevin Duret
Browse files

#5453 Fix hg setparam with geo coords

parent 71f5fc5d
Branches
Tags
No related merge requests found
......@@ -152,7 +152,7 @@ class CentreonHostGroup extends CentreonObject
throw new CentreonClapiException(self::MISSINGPARAMETER);
}
if (($objectId = $this->getObjectId($params[self::ORDER_UNIQUENAME])) != 0) {
if (!preg_match("/^hg_/", $params[1])) {
if (!preg_match("/^hg_/", $params[1]) && $params[1] != "geo_coords") {
$params[1] = "hg_".$params[1];
}
$updateParams = array($params[1] => $params[2]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment