From: hickert Date: Fri, 12 May 2006 07:13:54 +0000 (+0000) Subject: Fixed glpi errors if servers is renamed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=856044cab8adadcf01cf9f59022bf82409fa76fa;p=gosa.git Fixed glpi errors if servers is renamed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3308 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_glpiAccount.inc b/plugins/admin/systems/class_glpiAccount.inc index 1ea5cab2c..a9b3aff43 100644 --- a/plugins/admin/systems/class_glpiAccount.inc +++ b/plugins/admin/systems/class_glpiAccount.inc @@ -724,8 +724,12 @@ class glpiAccount extends plugin $attrs['name'] = $this->dn; unset($attrs['ID']); $this->handle = new glpiDB($this->data['SERVER'],$this->data['LOGIN'],$this->data['PASSWORD'],$this->data['DB']); + + print_a($attrs); + + /* check if we have to update, add */ if($this->initialy_was_account&&$this->is_account){ - $this->handle->updateComputerInformations($attrs,$this->dn); + $this->handle->updateComputerInformations($attrs,$this->orig_dn); }elseif($this->is_account){ $this->handle->addComputerInformations($attrs,$this->dn); }