summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5c0961e)
raw | patch | inline | side by side (parent: 5c0961e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 17 Mar 2006 11:12:26 +0000 (11:12 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 17 Mar 2006 11:12:26 +0000 (11:12 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2859 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_CopyPasteHandler.inc | patch | blob | history | |
plugins/personal/environment/class_environment.inc | patch | blob | history |
index 660c351cc03a3b276c9be2083020d9265a17c737..a6d1a8a30fce48c022b6167f1d6697ae159a7fbf 100644 (file)
foreach($obj->attributes as $attr){
$this->current->by_object[$name]->$attr = $obj->$attr;
}
- foreach(array('is_account') as $attr){
- $this->current->by_object[$name]->$attr = $obj->$attr;
+ foreach(array('is_account','gotoHotplugDevices','gotoLogonScripts','gotoProfileServers','gotoProfileFlag_C','gotoProfileFlag_L','gotoPrinter','useProfile','OrigCn','Categories') as $attr){
+ if(isset($obj->$attr)){
+ $this->current->by_object[$name]->$attr = $obj->$attr;
+ }
}
+
}
if($this->isCurrentObjectPastAble()){
return(true);
foreach($this-> current->by_object as $obj){
$ret = array_merge($ret , $obj->check());
}
+
return($ret);
}
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index 3b6bea7e860d4a5afcaf9cf46492e0a4cc1ef74d..86447ea180939a265dd9455c8ba8af531121e4f1 100644 (file)
VAR $newKioskProfiles = array();
/* Hotplug Devices */
- var $gotoHotplugDevice = ""; // Selected hotplug
+ var $gotoHotplugDevice = array(); // Selected hotplug
var $gotoHotplugDevices = array();// Already configured hotplug devices
"gotoHotplugDevice");
var $objectclasses = array("gotoEnvironment"); // Specifies the objectClass which contains the attributes edited here
var $cn;
+ var $OrigCn;
function environment ($config, $dn= NULL)
{
$suffix="Group";
$this->uid = $this->attrs['cn'][0];
$this->attrs['uid'] = $this->attrs['cn'][0];
+ $this->OrigCn = $this->attrs['cn'][0];
}else{
$suffix="User";
}
/* Save to LDAP */
function save()
{
-
+ /* If group was renamed, all printer settings get lost
+ */
/* only save changed variables ....*/
if ($this->gotoKioskProfile =="none") $this->gotoKioskProfile ="";
if((!empty($this->gotoKioskProfile))&&($this->gotoKioskProfile != "none")){