From: hickert Date: Fri, 15 Oct 2010 08:56:01 +0000 (+0000) Subject: Updated class listing :: filterLink() X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9d0ea284cfd56cd4c23077f7bf8f1c4d1cf1fa5c;p=gosa.git Updated class listing :: filterLink() -Allow to have different title values than the 'dn'; git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20054 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 95a729019..456b3cb8d 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -998,7 +998,14 @@ function filterLink() $row= func_get_arg(0); $pid= $this->pid; - $dn= LDAP::fix(func_get_arg(1)); + + // Prepare title attribute + $titleAttr = func_get_arg(1); + if(is_array($titleAttr) && isset($titleAttr[0])){ + $titleAttr = $titleAttr[0]; + } + $titleAttr = LDAP::fix($titleAttr); + $params= array(func_get_arg(2)); // Collect sprintf params @@ -1014,7 +1021,7 @@ function filterLink() $result= " "; $trans= call_user_func_array("sprintf", $params); if ($trans != "") { - return("".set_post($trans).""); + return("".set_post($trans).""); } return $result;