summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 036d961)
raw | patch | inline | side by side (parent: 036d961)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sun, 21 Jun 2009 19:47:01 +0000 (19:47 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sun, 21 Jun 2009 19:47:01 +0000 (19:47 +0000) |
Properly show object group membership in system list
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13751 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13751 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/systems/admin/systems/class_divListSystem.inc | patch | blob | history |
diff --git a/trunk/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/trunk/gosa-plugins/systems/admin/systems/class_divListSystem.inc
index 3bbfdd55d7e5617853bd692d43d1e8c701e61bfc..51f2171f8d5779697c2289000df5d1abf70e9ca5 100644 (file)
$cnts[$type] ++;
/* Create each field */
+ $filtered_dn = str_replace('\\,', '\\2C', LDAP::fix($val['dn']));
$field0 = array("string" => "<input type='checkbox' id='item_selected_".$key."' name='item_selected_".$key."'>" ,
"attach" => "style='width:20px;'");
$field1 = array("string" => sprintf($img['img'],$val['dn']),
"attach" => "style='text-align:center;width:20px;'");
- if(isset($ogs_release[$val['dn']])){
+ if(isset($ogs_release[$filtered_dn])){
$field2 = array("string" => sprintf($editlink,$key,$display)." <img src=
'plugins/ogroups/images/select_ogroup.png' class='center' alt='' title='".
- sprintf(_("Member of %s object group"),trim($ogs_release[$val['dn']]['CN'],", "))."'>",
- "attach" => "style='' title='".preg_replace('/ /', ' ', LDAP::fix($val['dn']))."'");
+ sprintf(_("Member of %s object group"),trim($ogs_release[$filtered_dn]['CN'],", "))."'>",
+ "attach" => "style='' title='".preg_replace('/ /', ' ', LDAP::fix($filtered_dn))."'");
}else{
$field2 = array("string" => sprintf($editlink,$key,$display),
- "attach" => "style='' title='".preg_replace('/ /', ' ', LDAP::fix($val['dn']))."'");
+ "attach" => "style='' title='".preg_replace('/ /', ' ', LDAP::fix($filtered_dn))."'");
}
$field3 = array("string" => preg_replace("/%KEY%/", "$key", $action2.$action),
"attach" => "style='width:".$action_col_size."px;border-right:0px;text-align:right;'");
if(isset($val['FAIclass'][0]) && preg_match("/:/",$val['FAIclass'][0])){
$release = preg_replace("/^.*:/","",$val['FAIclass'][0]);
$release_attach = "";
- }elseif(isset($ogs_release[$val['dn']])){
- $release = trim($ogs_release[$val['dn']]['STR'],", ").
+ }elseif(isset($ogs_release[$filtered_dn])){
+ $release = trim($ogs_release[$filtered_dn]['STR'],", ").
" <img src='plugins/ogroups/images/select_ogroup.png' class='center' alt=''
- title='".sprintf(_("Inherited from %s"),trim($ogs_release[$val['dn']]['CN'],", "))."'>";
- $release_attach = "title='".sprintf(_("Inherited from %s"),trim($ogs_release[$val['dn']]['CN'],", "))."'";
+ title='".sprintf(_("Inherited from %s"),trim($ogs_release[$filtered_dn]['CN'],", "))."'>";
+ $release_attach = "title='".sprintf(_("Inherited from %s"),trim($ogs_release[$filtered_dn]['CN'],", "))."'";
}
$field2a = array("string" => $release." ","attach"=>$release_attach." style='width:100px;'");
$this->AddElement( array($field0,$field1,$field2,$field2a,$field3));