From: hickert Date: Mon, 17 Oct 2005 11:00:06 +0000 (+0000) Subject: Removed non ldap attributes from attributes array X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=956c85239c1363f153666195d0e6eb60c277c49d;p=gosa.git Removed non ldap attributes from attributes array git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1584 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 01a3f0c32..76f709634 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -59,8 +59,8 @@ class environment extends plugin /* general settings */ // Sets the attributes which will kept on page reload, which will be saved, ... - var $attributes = array("uid","useProfile","gotoProfileServer","gotoProfileServers","gotoProfileFlags","gotoProfileFlag_C", - "gotoXResolution","gotoProfileFlag_L","gotoProfileQuota", + var $attributes = array("uid","gotoProfileServer","gotoProfileFlags", + "gotoXResolution","gotoProfileQuota", "gotoLogonScripts","gotoLogonScript", "gotoPrinters", "gotoShares","gotoShare","gotoShareSelections", @@ -313,6 +313,18 @@ class environment extends plugin * Assign this all to Smarty */ + if(empty($this->gotoProfileFlag_L)){ + $smarty->assign("gotoProfileFlag_LCHK"," "); + }else{ + $smarty->assign("gotoProfileFlag_LCHK"," checked "); + } + + if(empty($this->gotoProfileFlag_C)){ + $smarty->assign("gotoProfileFlag_CCHK"," "); + }else{ + $smarty->assign("gotoProfileFlag_CCHK"," checked "); + } + if(empty($this->useProfile)){ $smarty->assign("gotoProfileACL","disabled"); $smarty->assign("useProfileCHK",""); @@ -597,7 +609,7 @@ class environment extends plugin plugin::remove_from_parent(); /* Don't save our template variables */ - $skip = array("useProfile","uid","gotoProfileServers","gotoProfileFlag_C","gotoProfileFlag_L", + $skip = array("uid", "gotoLogonScripts","gotoPrinters","gotoShares","gotoKioskProfiles","gotoHotplugDevices", "gotoPrinter"); /* Skip all these attributes */ @@ -623,8 +635,26 @@ class environment extends plugin /* Get all Posted vars * Setup checkboxes */ + + if(isset($_POST['iamposted'])){ + if(isset($_POST['useProfile'])){ + $this->useProfile = $_POST['useProfile']; + }else{ + $this->useProfile = true; + } + if(isset($_POST['gotoProfileFlag_C'])){ + $this->gotoProfileFlag_C = $_POST['gotoProfileFlag_C']; + }else{ + $this->gotoProfileFlag_C = false; + } + if(isset($_POST['gotoProfileFlag_L'])){ + $this->gotoProfileFlag_L = $_POST['gotoProfileFlag_L']; + }else{ + $this->gotoProfileFlag_L = false; + } + plugin::save_object(); foreach($this->attributes as $s_attr){ if(in_array($s_attr,array("gotoShares","gotoHotplugDevices","gotoPrinters","gotoLogonScripts","uid"))) continue; diff --git a/plugins/personal/environment/environment.tpl b/plugins/personal/environment/environment.tpl index 3802b2442..447eb359f 100644 --- a/plugins/personal/environment/environment.tpl +++ b/plugins/personal/environment/environment.tpl @@ -38,7 +38,7 @@   + id="gotoProfileFlag_C" {$gotoProfileACL} {$gotoProfileFlag_CCHK}>  @@ -75,7 +75,7 @@ - +