Code

Updated Variable Handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Jul 2010 08:46:26 +0000 (08:46 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Jul 2010 08:46:26 +0000 (08:46 +0000)
-Allow to recreate recently removed variables.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18971 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiVariableEntry.inc

index aa3159dd9d866bf201ae33190bd8aaf73ff651a0..06603b5656c081e2c0cccac9838abf69fe410ad2 100644 (file)
@@ -82,7 +82,8 @@ class faiVariableEntry extends plugin
     /* Call common method to give check the hook */
     $message= plugin::check();
 
-    if(isset($this->parent->SubObjects[$this->cn]) && $this->cn != $this->orig_cn){
+    if(isset($this->parent->SubObjects[$this->cn]) && $this->cn != $this->orig_cn && 
+            $this->parent->SubObjects[$this->cn]['status'] != 'delete'){
       $message[] = msgPool::duplicated(_("Name"));
     }