Code

Fixed remove from parent, for k=kolab entry.
[gosa.git] / include / class_tabs.inc
index 9c0ebfd560b258cee81aa4adebb47a101a4b341f..689d89268149b06d7e47ceb8c7d23c8f5a040e0d 100644 (file)
@@ -30,6 +30,7 @@ class tabs
   var $disabled= "";
   var $by_name= array();
   var $by_object= array();
+  var $SubDialog = false;
 
   function tabs($config, $data, $dn)
   {
@@ -251,7 +252,9 @@ class tabs
   function saveCopyDialog()
   {
          foreach ($this->by_object as $key => $obj){
-                 $this->by_object[$key]->saveCopyDialog();
+                 if($obj->is_account){
+                         $this->by_object[$key]->saveCopyDialog();
+                 }
          }
   }
 
@@ -261,8 +264,17 @@ class tabs
   function getCopyDialog()
   {
          $ret = "";
+         $this->SubDialog = false;
          foreach ($this->by_object as $key => $obj){
-                 $ret .=  $this->by_object[$key]->getCopyDialog();
+                 if($obj->is_account){
+                         $tmp = $this->by_object[$key]->getCopyDialog();
+                         if($tmp['status'] == "SubDialog"){
+                                 $this->SubDialog = true;
+                     return($tmp['string']);
+                 }else{
+                 $ret .= $tmp['string'];
+                         }
+                 }
          }
          return($ret);
   }