From deb0b8eee0ff0c464b06cc4234683bfee8c6c434 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 6 Jan 2006 13:40:30 +0000 Subject: [PATCH] Glpi account can now be removed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2424 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_glpiAccount.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_glpiAccount.inc b/plugins/admin/systems/class_glpiAccount.inc index f07dd853e..a7e15737d 100644 --- a/plugins/admin/systems/class_glpiAccount.inc +++ b/plugins/admin/systems/class_glpiAccount.inc @@ -8,7 +8,7 @@ class glpiAccount extends plugin var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser"); /* attribute list for save action */ - var $ignore_account= TRUE; + var $ignore_account= FALSE; var $attributes= array("ID","name","contact", "tech_num","comments","date_mod","os","location","domain","network","contact_num", "model","type","is_template","FK_glpi_enterprise","deleted"); @@ -509,6 +509,11 @@ class glpiAccount extends plugin function remove_from_parent() { + $this->handle = new glpiDB($this->data['SERVER'],$this->data['LOGIN'],$this->data['PASSWORD'],$this->data['DB']); + if($this->initialy_was_account){ + $this->handle->removeComputerInformations($this->dn); + } + } function getDevices(){ -- 2.30.2