Code

Skip setting FAIstate if obejct is new
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Dec 2006 12:17:23 +0000 (12:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Dec 2006 12:17:23 +0000 (12:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5342 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servGeneric.inc
plugins/admin/systems/class_terminalGeneric.inc
plugins/admin/systems/class_workstationGeneric.inc

index 274d3ded3736da1a26183f23f4041f0f2bba7bee..9a47614b9874dd4694077ba2460cdc7dfce2b6cb 100644 (file)
@@ -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"));
index aea4d11fca748eefc08f06573055c7960dd5cdd4..e20d353c0db292e84378157d54752a316f058252 100644 (file)
@@ -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"));
index ef68b3993add8d2a3e020635384a8a83ab3a8187..45efd16dafed2501d6ed25dafd60dbd5fab24ef9 100644 (file)
@@ -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"));