From 856044cab8adadcf01cf9f59022bf82409fa76fa Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 May 2006 07:13:54 +0000 Subject: [PATCH] Fixed glpi errors if servers is renamed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3308 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_glpiAccount.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- 2.30.2