Use cast to text on domain_enabled.
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2018 - 2019
|
Portions created by the Initial Developer are Copyright (C) 2018 - 2020
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
@@ -164,7 +164,11 @@
|
|||||||
$offset = $rows_per_page * $page;
|
$offset = $rows_per_page * $page;
|
||||||
|
|
||||||
//get the list
|
//get the list
|
||||||
$sql = str_replace('count(domain_uuid)', '*', $sql);
|
$sql = "select domain_uuid, domain_name, domain_uuid, cast(domain_enabled as text), domain_description ";
|
||||||
|
$sql .= "from v_domains ";
|
||||||
|
if (isset($sql_search)) {
|
||||||
|
$sql .= "where ".$sql_search;
|
||||||
|
}
|
||||||
$sql .= order_by($order_by, $order, 'domain_name', 'asc');
|
$sql .= order_by($order_by, $order, 'domain_name', 'asc');
|
||||||
$sql .= limit_offset($rows_per_page, $offset);
|
$sql .= limit_offset($rows_per_page, $offset);
|
||||||
$database = new database;
|
$database = new database;
|
||||||
|
|||||||
Reference in New Issue
Block a user