Code

Glpi account can now be removed
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Jan 2006 13:40:30 +0000 (13:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Jan 2006 13:40:30 +0000 (13:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2424 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_glpiAccount.inc

index f07dd853ef822b9e926b899dc3923de9eec320df..a7e15737d5d66a0a08c3ca0bec4d62884bf5c568 100644 (file)
@@ -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(){