From: cajus Date: Mon, 24 Aug 2009 09:44:19 +0000 (+0000) Subject: Added simple workaround for sorting of foreign values X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=66ff45816c59bdc1b93bd2726b8b3e1180dbc490;p=gosa.git Added simple workaround for sorting of foreign values git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14113 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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";