From 66ff45816c59bdc1b93bd2726b8b3e1180dbc490 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 24 Aug 2009 09:44:19 +0000 Subject: [PATCH] Added simple workaround for sorting of foreign values git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14113 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 34afc1e09..3b3e04bd5 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -306,7 +306,11 @@ class listing { $trow.="colprops[$index]." class='list0'>".$renderedCell."\n"; // Save rendered column - $this->entries[$row]["_sort$index"]= $renderedCell; + $sort= preg_replace('/.*>([^<]+)<.*$/', '$1', $renderedCell); + if (preg_match('/entries[$row]["_sort$index"]= $sort; } $trow.="\n"; -- 2.30.2