From: hickert Date: Thu, 17 Apr 2008 11:57:27 +0000 (+0000) Subject: Fixed copy & paste for group - apps X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aee5e8d9f708be1b392409f8280e8a5e3db81c31;p=gosa.git Fixed copy & paste for group - apps git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10535 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc index 29a6d540f..13373eb81 100644 --- a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc +++ b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc @@ -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"; + } + } }