* fix a bug for order.

This commit is contained in:
wyd621
2013-09-26 08:05:25 +00:00
parent ffd3c83dd0
commit 90e5499f1d
2 changed files with 19 additions and 4 deletions
+3 -3
View File
@@ -170,19 +170,19 @@ class common extends control
{
if(isset($order[1]) and $order[1] == 'asc')
{
$orderBy = "`{$order[0]}`_desc";
$orderBy = "{$order[0]}_desc";
$className = 'headerSortDown';
}
else
{
$orderBy = "`{$order[0]}`_asc";
$orderBy = "{$order[0]}_asc";
$className = 'headerSortUp';
}
}
else
{
$orderBy = "`" . trim($fieldName, '`') . "`" . '_' . 'asc';
$orderBy = "" . trim($fieldName, '`') . "" . '_' . 'asc';
$className = 'header';
}
$link = helper::createLink($module, $method, sprintf($vars, $orderBy));