You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/classes/engine/Host.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -443,11 +443,11 @@ public function rename($newname)
443
443
$oldname = $this->getName();
444
444
$this->setDataValue($this->nameColumn, $newname);
445
445
446
-
$hostGroup = newEngine\IEHostgroup();
446
+
$hostGroup = newHostgroup();
447
447
$hostGroup->renameHost($oldname, $newname);
448
448
449
449
$renameAll = true;
450
-
$service = newEngine\IEService();
450
+
$service = newService();
451
451
$servicesAssigned = $service->dblink->queryToArray('SELECT '.$service->myKeyColumn.','.$service->nameColumn.' FROM '.$service->myTable.' WHERE '.'host_name'.' LIKE \'%"'.$oldname.'"%\'',
@@ -463,7 +463,7 @@ public function rename($newname)
463
463
$childsAssigned = $this->dblink->queryToArray('SELECT '.$this->myKeyColumn.','.$this->nameColumn.' FROM '.$this->myTable.' WHERE '.'parents'.' LIKE \'%"'.$oldname.'"%\'',
$servicesAssigned = $service->dblink->queryToArray('SELECT '.$service->myKeyColumn.','.$service->nameColumn.' FROM '.$service->myTable.' WHERE host_name LIKE \'%"'.$this->getName().'"%\'',
0 commit comments