Code

Fixed button handling, after editing kioskProfiles the save and cancel button were...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Sep 2007 12:12:04 +0000 (12:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Sep 2007 12:12:04 +0000 (12:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7353 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc

index efd8521eb9b20ed5f4c2bd5fc6c96af07fd70722..4f7fc078dbba839b96f5328f9fc5435ff7b74d3f 100644 (file)
@@ -499,7 +499,6 @@ class environment extends plugin
       $this->kioskProfileList = array_reverse($list);
 
       unset($this->dialog);
-      $this->dialog=NULL;
       $this->is_dialog = false;
     }
 
@@ -602,8 +601,11 @@ class environment extends plugin
      * This entry will be, a combination of mountPoint and sharedefinitions 
      */
     if(isset($_POST['gotoShareAdd']) && $this->acl_is_writeable("gotoShare")){
+
       /* We assign a share to this user, if we don't know where to mount the share */
-      if((!isset($_POST['gotoShareMountPoint']))||(empty($_POST['gotoShareMountPoint']))||(preg_match("/[\|]/i",$_POST['gotoShareMountPoint']))){
+      if(!isset($_POST['gotoShareSelection']) || get_post('gotoShareSelection') == ""){
+        print_red(_("You must select a valid share."));
+      }elseif((!isset($_POST['gotoShareMountPoint']))||(empty($_POST['gotoShareMountPoint']))||(preg_match("/[\|]/i",$_POST['gotoShareMountPoint']))){
         print_red(_("You must specify a valid mount point."));
       }elseif(preg_match('/ /', $_POST['gotoShareMountPoint'])){
         print_red(_("Spaces are not allowed in the mount path!"));