forked from science-ation/science-ation
Try this version.. Removed the quotes from sortField, added them to
the table headers when the table is printed.
This commit is contained in:
parent
e43bcb1a7d
commit
8ed5dd3dfc
@ -903,7 +903,7 @@ class TableEditor
|
||||
}
|
||||
}
|
||||
if($this->sortField())
|
||||
$query.=" ORDER BY `".$this->sortField()."`";
|
||||
$query.=" ORDER BY ".$this->sortField()."";
|
||||
|
||||
if($this->rowsPerPage>0)
|
||||
{
|
||||
@ -1031,7 +1031,7 @@ class TableEditor
|
||||
if($this->sortField()==$f)
|
||||
echo "<th>".i18n($n)."</th>";
|
||||
else
|
||||
echo "<th><a href=\"{$_SERVER['PHP_SELF']}?TableEditorAction=sort&sort=$f\">".i18n($n)."</a></th>";
|
||||
echo "<th><a href=\"{$_SERVER['PHP_SELF']}?TableEditorAction=sort&sort=`$f`\">".i18n($n)."</a></th>";
|
||||
}
|
||||
echo "<th>".i18n("Actions")."</th>";
|
||||
echo "</tr>";
|
||||
|
Loading…
Reference in New Issue
Block a user