Code

Fixed department list
[gosa.git] / plugins / admin / fai / class_faiVariable.inc
index 39565634ae3260dfb449e4314574ff1c68899805..4e51ef8402784bcbe997faf42a119501c3800899 100644 (file)
@@ -38,8 +38,9 @@ class faiVariable extends plugin
   var $base             = "";
   var $release          = "";
   var $copy_paste_mode  = false;
+  var $cut_paste_mode   = false;
 
-  var $CopyPasteVars  = array("SubObjects","FAIstate");
+  var $CopyPasteVars  = array("SubObjects");
 
   function faiVariable ($config, $dn= NULL)
   {
@@ -272,7 +273,7 @@ class faiVariable extends plugin
     $message= plugin::check();
 
     /* If this is a new script, check if a script with this name already exists */
-    if(!empty($this->release) && $this->copy_paste_mode){
+    if(!empty($this->release) && ($this->copy_paste_mode || $this->cut_paste_mode) ){
 
       /* Check if current name is already used for fai scripts in selected release */
       $dn = 'cn='.$this->cn.",ou=variables,".$this->release;