summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5ac5987)
raw | patch | inline | side by side (parent: 5ac5987)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 8 Apr 2008 09:29:21 +0000 (09:29 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 8 Apr 2008 09:29:21 +0000 (09:29 +0000) |
-Default entry is named 'defaults' not "default"
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10273 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10273 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/sudo/admin/sudo/class_divListSudo.inc | patch | blob | history | |
gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/sudo/admin/sudo/class_divListSudo.inc b/gosa-plugins/sudo/admin/sudo/class_divListSudo.inc
index d0de10f6fd079ad15d44337566d5746c5e623003..fc65d03edd8ca2fe79f831dd2f44c40722dd00ee 100644 (file)
$display = $val['cn'][0].$desc;
- /* Highlight default entry */
- if(preg_match("/^default$/i",$val['cn'][0])){
+ /* Highlight defaults entry */
+ if(preg_match("/^defaults$/i",$val['cn'][0])){
$display = "<b>$display</b>";
}
diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc
index 969598d9b35feb62561627820f02ab9906873e3f..967d8c4ce5e3a1cdfb0b6e5cec1f42bb917293a3 100644 (file)
}
- if(preg_match("/^default$/i",$this->cn)){
+ if(preg_match("/^defaults$/i",$this->cn)){
$this->is_default = TRUE;
}
$smarty = get_smarty();
$smarty->assign("is_default",$this->is_default);
foreach($this->attributes as $attr){
- $smarty->assign($attr,$this->$attr);
+ if(is_string($this->$attr)){
+ $smarty->assign($attr,htmlentities($this->$attr));
+ }else{
+ $smarty->assign($attr,$this->$attr);
+ }
$smarty->assign($attr."ACL",$this->getacl($attr));
}
plugin::save_object();
if($this->is_default){
- $this->cn = "default";
+ $this->cn = "defaults";
}
if(is_object($this->dialog)){
}
/* Check if name is reserved */
- if(!$this->is_default && preg_match("/^default$/i",$this->cn)){
+ if(!$this->is_default && preg_match("/^defaults$/i",$this->cn)){
$message[] = msgPool::reserved(_("Name"));
}
/*! \brief Force this entry to be handled and saved as 'default'
- @param BOOL TRUE -force default FALSE -normal
+ @param BOOL TRUE -force defaults FALSE -normal
*/
public function set_default($state)
{
$this->is_default = TRUE;
- $this->cn = "default";
+ $this->cn = "defaults";
}