From: hickert Date: Thu, 7 Dec 2006 12:17:23 +0000 (+0000) Subject: Skip setting FAIstate if obejct is new X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9cebae90107e64413adb23d53192899f75660928;p=gosa.git Skip setting FAIstate if obejct is new git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5342 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc index 274d3ded3..9a47614b9 100644 --- a/plugins/admin/systems/class_servGeneric.inc +++ b/plugins/admin/systems/class_servGeneric.inc @@ -94,7 +94,7 @@ class servgeneric extends plugin $this->didAction= TRUE; /* Set FAIstate */ - if($this->fai_activated){ + if($this->fai_activated && $this->dn != "new"){ $ldap = $this->config->get_ldap_link(); $ldap->cd($this->config->current['BASE']); $ldap->cat($this->dn,array("objectClass")); diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc index aea4d11fc..e20d353c0 100644 --- a/plugins/admin/systems/class_terminalGeneric.inc +++ b/plugins/admin/systems/class_terminalGeneric.inc @@ -151,7 +151,7 @@ class termgeneric extends plugin if (isset($_POST['action']) && $this->acl_is_writeable("FAIstate")){ /* Set FAIstate */ - if($this->fai_activated){ + if($this->fai_activated && $this->dn != "new"){ $ldap = $this->config->get_ldap_link(); $ldap->cd($this->config->current['BASE']); $ldap->cat($this->dn,array("objectClass")); diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index ef68b3993..45efd16da 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -168,7 +168,7 @@ class workgeneric extends plugin } elseif ($_POST['saction'] != "wake") { /* Set FAIstate */ - if($this->fai_activated){ + if($this->fai_activated && $this->dn != "new"){ $ldap = $this->config->get_ldap_link(); $ldap->cd($this->config->current['BASE']); $ldap->cat($this->dn,array("objectClass"));