From: hickert Date: Thu, 20 Sep 2007 12:12:04 +0000 (+0000) Subject: Fixed button handling, after editing kioskProfiles the save and cancel button were... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c91b3153f5cb050ad8920f073bf18449eb9d6411;p=gosa.git Fixed button handling, after editing kioskProfiles the save and cancel button were hidden git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7353 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index efd8521eb..4f7fc078d 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -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!"));