Fix order by on outbound routes
This commit is contained in:
@@ -393,7 +393,7 @@
|
|||||||
//html table header order by
|
//html table header order by
|
||||||
function th_order_by($field_name, $column_title, $order_by, $order, $app_uuid = '', $css = '', $http_get_params = '', $description = '') {
|
function th_order_by($field_name, $column_title, $order_by, $order, $app_uuid = '', $css = '', $http_get_params = '', $description = '') {
|
||||||
global $text;
|
global $text;
|
||||||
if (is_uuid($app_uuid) > 0) { $app_uuid = "&app_uuid=".$app_uuid; } // accomodate need to pass app_uuid where necessary (inbound/outbound routes lists)
|
if (is_uuid($app_uuid) > 0) { $app_uuid = "&app_uuid=".urlencode($app_uuid); } // accomodate need to pass app_uuid where necessary (inbound/outbound routes lists)
|
||||||
|
|
||||||
$field_name = preg_replace("#[^a-zA-Z0-9_]#", "", $field_name);
|
$field_name = preg_replace("#[^a-zA-Z0-9_]#", "", $field_name);
|
||||||
$field_value = preg_replace("#[^a-zA-Z0-9_]#", "", $field_value);
|
$field_value = preg_replace("#[^a-zA-Z0-9_]#", "", $field_value);
|
||||||
@@ -440,11 +440,11 @@
|
|||||||
}
|
}
|
||||||
if ($order == "asc") {
|
if ($order == "asc") {
|
||||||
$description .= $text['label-order'].': '.$text['label-ascending'];
|
$description .= $text['label-order'].': '.$text['label-ascending'];
|
||||||
$html .= "<a href='?order_by=".urlencode($field_name)."&order=desc".urlencode($app_uuid).$sanitized_parameters."' title=\"".escape($description)."\">".escape($column_title)."</a>";
|
$html .= "<a href='?order_by=".urlencode($field_name)."&order=desc".$app_uuid.$sanitized_parameters."' title=\"".escape($description)."\">".escape($column_title)."</a>";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$description .= $text['label-order'].': '.$text['label-descending'];
|
$description .= $text['label-order'].': '.$text['label-descending'];
|
||||||
$html .= "<a href='?order_by=".urlencode($field_name)."&order=asc".urlencode($app_uuid).$sanitized_parameters."' title=\"".escape($description)."\">".escape($column_title)."</a>";
|
$html .= "<a href='?order_by=".urlencode($field_name)."&order=asc".$app_uuid.$sanitized_parameters."' title=\"".escape($description)."\">".escape($column_title)."</a>";
|
||||||
}
|
}
|
||||||
$html .= "</th>";
|
$html .= "</th>";
|
||||||
return $html;
|
return $html;
|
||||||
|
|||||||
Reference in New Issue
Block a user