From 9d0ea284cfd56cd4c23077f7bf8f1c4d1cf1fa5c Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 15 Oct 2010 08:56:01 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_listing.inc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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; -- 2.30.2