Code

Updated preg_matches
[gosa.git] / plugins / admin / fai / class_faiProfile.inc
index 6befbbdfd6cec63966b658a43804cd1d3c4be0c3..2df7bac2f60a375b3a7b04a9f85e786a6738f9ea 100644 (file)
@@ -34,6 +34,7 @@ class faiProfile extends plugin
   var $base           = "";
   var $release        = "";
   var $copy_paste_mode= false;
+  var $cut_paste_mode = false;
 
   var $CopyPasteVars  = array("FAIclass","FAIclasses","FAIAllclasses","FAIstate");
 
@@ -388,7 +389,7 @@ class faiProfile extends plugin
     if($this->copy_paste_mode){
 
       /* 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=profiles,".$this->release;