This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-03-28 14:25:11 -04:00
parent 4241846aab
commit 54418b0470

View File

@@ -975,10 +975,9 @@ class pmDynaform
$dt = $parsed["ORDER"];
foreach ($dt as $key => $value) {
$search = preg_replace("/ ASC$/i", "", $value["base_expr"]);
$orderBy .= $search . ", ";
$orderBy .= $search . " " . $value["direction"] . ", ";
}
$orderBy = rtrim($orderBy, ", ");
$orderBy .= " " . $value["direction"];
}
$orderBy = trim($orderBy);