Code

Fixed copy & paste for group - apps
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Apr 2008 11:57:27 +0000 (11:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Apr 2008 11:57:27 +0000 (11:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10535 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc

index 29a6d540fa80ab2627a8b1f0c07a37ca2af47814..13373eb8172d59879e0095a70cb28e7282447d1c 100644 (file)
@@ -533,6 +533,8 @@ class appgroup extends plugin
 
   function check()
   {
+    $message = plugin::check();
+    return($message);
   }
 
 
@@ -1107,6 +1109,7 @@ class appgroup extends plugin
           }
         }
       }
+
  
       if($entry['STATUS'] == "LOADED"){
         continue;
@@ -1126,6 +1129,8 @@ class appgroup extends plugin
       }
     }
 
+    print_a($Actions);
+
     $ldap = $this->config->get_ldap_link();
     $ldap->cd($this->config->current['BASE']);
     foreach($Actions['Remove'] as $dn){
@@ -1184,6 +1189,17 @@ class appgroup extends plugin
 
   function PrepareForCopyPaste($source)
   {
+    plugin::PrepareForCopyPaste($source);
+   
+    $tmp = new appgroup($this->config,$source['dn']);
+    $this->is_account = TRUE;
+    $this->a_Structure = $tmp->a_Structure;
+    $all = $this->_get_all_entries();
+    foreach($all as &$entry){
+      if(isset($entry['STATUS'])){
+        $entry['STATUS'] = "ADDED";
+      }
+    }
   }