summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 22c8744)
raw | patch | inline | side by side (parent: 22c8744)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 8 Apr 2008 07:47:09 +0000 (07:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 8 Apr 2008 07:47:09 +0000 (07:47 +0000) |
-Fixed save & load of sudo options
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10269 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10269 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc | patch | blob | history | |
gosa-plugins/sudo/admin/sudo/class_sudoOption.inc | patch | blob | history |
diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc
index 02d83b68a3080376c9ba97556fafa51cea7491e2..0544cf64d8223392a86a218b44192937efdb96df 100644 (file)
}
foreach(array("sudoUser") as $attr){
- $img1 = "<img src='images/select_user.png' alt='"._("User")."'>";
- $img2 = "<img src='images/select_groups.png' alt='"._("Group")."'>";
+ $img1 = "<img src='images/select_user.png' alt='"._("User")."' class='center'>";
+ $img2 = "<img src='images/select_groups.png' alt='"._("Group")."' class='center'>";
if($this->acl_is_readable($attr)){
foreach($this->$attr as $key => $entry){
$neg = "";
$this->attrs['sudoRunAs'] = array_values($this->attrs['sudoRunAs']);
$this->attrs['sudoUser'] = array_values($this->attrs['sudoUser']);
$this->attrs['sudoCommand'] = array_values($this->attrs['sudoCommand']);
+
$this->cleanup();
$ldap = $this->config->get_ldap_link();
diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoOption.inc b/gosa-plugins/sudo/admin/sudo/class_sudoOption.inc
index 6b12f81305b3c3b6a3e8f5dd80f3c89bdb6129a9..a798d2ea94e5674f2154e31f1e4742b1fb07e3c6 100644 (file)
}
/* Append values */
- if(!isset($this->sudoOption[$opt])){
- $this->sudoOption[$opt][] = $option;
- }
+ $this->sudoOption[$opt][] = $option;
}
}
}
Save LISTS
****/
if($type=="LISTS"){
- if(empty($value)){
+ if($value == ""){
$option = $name;
}else{
$option = $name."=".$value;
Save STRING / INTEGER
****/
if(in_array($type,array("STRING","INTEGER"))){
- if(!empty($value)){
+ if($value != ""){
$option = $name."=".$value;
}else{
$option = $name;
}elseif($value == "TRUE"){
$option = $name;
}else{
- if(!empty($value)){
+ if($value != ""){
$option = $name."=".$value;
}else{
$option = $name;