From 625d52e1149834d81cfc6cdcb38028ce02262319 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 7 Nov 2006 09:00:03 +0000 Subject: [PATCH] Readded add multiple function git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5029 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupApplication.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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']; -- 2.30.2