Skip to content

Commit 3a77732

Browse files
committed
Fix User(s content) delete
1 parent 71af578 commit 3a77732

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

debian/changelog

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
icinga-editor (0.200-8) UNRELEASED; urgency=medium
1+
icinga-editor (0.200-9) UNRELEASED; urgency=medium
22

33
[ dvorak ]
44
* Initial release. (Closes: #XXXXXX)
@@ -20,5 +20,6 @@ icinga-editor (0.200-8) UNRELEASED; urgency=medium
2020
* Localisation in Debian (package) fix
2121
* Added missing Classes on debian
2222
* typo fix
23+
* Database Renamed to icinga_editor
2324

24-
-- vitex <vitex@developer.kancl.brevnov.czf> Tue, 19 Jul 2016 14:05:18 +0200
25+
-- vitex <vitex@developer.kancl.brevnov.czf> Tue, 19 Jul 2016 14:16:01 +0200

debian/revison

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8
1+
9

src/classes/engine/Contact.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public function delete($id = null)
335335
$id = $parent;
336336
}
337337

338-
$contactgroup = new Engine\IEContactgroup();
338+
$contactgroup = new Contactgroup();
339339
$contactgroups = $this->dblink->queryTo2DArray('SELECT '.$contactgroup->getmyKeyColumn().' FROM '.$contactgroup->myTable.' WHERE members LIKE \'%'.$this->getName().'%\'');
340340
if (count($contactgroups)) {
341341
foreach ($contactgroups as $contactgroupID) {
@@ -355,7 +355,7 @@ public function delete($id = null)
355355
}
356356

357357

358-
$service = new Engine\IEService();
358+
$service = new Service();
359359

360360
$services = $this->dblink->queryTo2DArray('SELECT '.$service->getmyKeyColumn().' FROM '.$service->myTable.' WHERE contacts LIKE \'%'.$this->getName().'%\'');
361361
if (count($services)) {
@@ -374,7 +374,7 @@ public function delete($id = null)
374374
}
375375
}
376376

377-
$host = new Engine\IEHost();
377+
$host = new Host();
378378

379379
$hosts = $this->dblink->queryTo2DArray('SELECT '.$host->getmyKeyColumn().' FROM '.$host->myTable.' WHERE contacts LIKE \'%'.$this->getName().'%\'');
380380
if (count($hosts)) {

0 commit comments

Comments
 (0)