From: hickert Date: Wed, 17 Sep 2008 10:11:08 +0000 (+0000) Subject: Updated workstation startup X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f23cc4203ce4245e643143d0081dce7e086a3344;p=gosa.git Updated workstation startup -Fixed Problem with share selection, shares were not displayed- git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12497 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc index 2084bb9a8..21e664ede 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -179,7 +179,7 @@ class workstartup extends plugin } } - $this->otoShareSelections= $config->getShareList(true); + $this->gotoShareSelections= $config->getShareList(true); $this->gotoAvailableShares= $config->getShareList(false); $tmp2 = array(); @@ -466,12 +466,13 @@ class workstartup extends plugin /* if $_POST['gotoShareAdd'] is set, we will try to add a new entry * This entry will be, a combination of mountPoint and sharedefinitions */ - if((isset($_POST['gotoShareAdd'])) && ($this->acl_is_writeable("gotoShare"))) { + if((isset($_POST['gotoShareAdd'])) && isset($_POST['gotoShareSelection']) && ($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']))){ msg_dialog::display(_("Error"), msgPool::required(_("Mount point")), ERROR_DIALOG); }else{ - if(count($this->gotoAvailableShares)){ + + if(isset($this->gotoAvailableShares[$_POST['gotoShareSelection']])){ $a_share = $this->gotoAvailableShares[$_POST['gotoShareSelection']]; $s_mount = $_POST['gotoShareMountPoint']; /* Preparing the new assignment */