From: hickert Date: Tue, 7 Nov 2006 09:00:03 +0000 (+0000) Subject: Readded add multiple function X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=625d52e1149834d81cfc6cdcb38028ce02262319;p=gosa.git Readded add multiple function git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5029 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index edc3239b3..e29898ce9 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -598,6 +598,16 @@ class appgroup extends plugin } } + /* Add multiple */ + if(isset($_POST['AddApps'])){ + foreach($_POST as $name => $value){ + if(preg_match("/AddApp_/",$name)){ + $app = preg_replace("/AddApp_/","",$name); + $this->addApp($app); + } + } + } + /* Add application with post */ if((isset($_GET['act']))&&($_GET['act']=="add")){ $this->used_apps[$_GET['id']]= $_GET['id'];