Fix the order of the fax list.

This commit is contained in:
Mark Crane
2013-12-20 05:52:51 +00:00
parent 5f796143f5
commit 32896d9d2c

View File

@@ -102,6 +102,7 @@ require_once "resources/paging.php";
//show all fax extensions
$sql = "select * from v_fax ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "order by fax_name asc ";
}
else {
//show only assigned fax extensions
@@ -109,6 +110,7 @@ require_once "resources/paging.php";
$sql .= "where f.fax_uuid = u.fax_uuid ";
$sql .= "and f.domain_uuid = '".$_SESSION['domain_uuid']."' ";
$sql .= "and u.user_uuid = '".$_SESSION['user_uuid']."' ";
$sql .= "order by f.fax_name asc ";
}
if (strlen($order_by) > 0) { $sql .= "order by $order_by $order "; }
$sql .= "limit $rows_per_page offset $offset ";