From: hickert Date: Wed, 31 May 2006 03:48:45 +0000 (+0000) Subject: Made hotplug device deletion [] multiple X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e5831eb7432913f20eb9c9c84a83f698c60f9fba;p=gosa.git Made hotplug device deletion [] multiple git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3569 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index dd9342cef..c68b5af1c 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -68,8 +68,8 @@ class environment extends plugin "gotoLogonScripts","gotoLogonScript", "gotoPrinter", "gosaDefaultPrinter", "gotoShares","gotoShare", - "gotoKioskProfile","gotoKioskProfiles", - "gotoHotplugDevice"); + "gotoKioskProfile","gotoKioskProfiles" + ); var $objectclasses = array("gotoEnvironment"); // Specifies the objectClass which contains the attributes edited here var $cn; var $OrigCn; @@ -577,7 +577,9 @@ class environment extends plugin /* We have to delete the selected hotplug from the list*/ if((isset($_POST['gotoHotplugDeviceDel']))&&(isset($_POST['gotoHotplugDevice']))){ - unset($this->gotoHotplugDevices[$_POST['gotoHotplugDevice']]); + foreach($_POST['gotoHotplugDevice'] as $name){ + unset($this->gotoHotplugDevices[$name]); + } } /* There are already defined hotplugs from other users we could use */ diff --git a/plugins/personal/environment/environment.tpl b/plugins/personal/environment/environment.tpl index 1af617c14..5daf8ef2d 100644 --- a/plugins/personal/environment/environment.tpl +++ b/plugins/personal/environment/environment.tpl @@ -154,9 +154,9 @@
- + {html_options values=$gotoHotplugDeviceKeys output=$gotoHotplugDevices} +