Use column names in the SQL Query.
This commit is contained in:
parent
03866355f6
commit
322bbd4c20
|
|
@ -324,7 +324,10 @@
|
|||
}
|
||||
|
||||
//get the dialplan details in an array
|
||||
$sql = "select * from v_dialplan_details ";
|
||||
$sql = "select ";
|
||||
$sql .= "domain_uuid, dialplan_uuid, dialplan_detail_uuid, dialplan_detail_tag, dialplan_detail_type, dialplan_detail_data, ";
|
||||
$sql .= "dialplan_detail_break, dialplan_detail_inline, dialplan_detail_group, dialplan_detail_order, cast(dialplan_detail_enabled as text) ";
|
||||
$sql .= "from v_dialplan_details ";
|
||||
$sql .= "where dialplan_uuid = :dialplan_uuid ";
|
||||
$sql .= "order by dialplan_detail_group asc, dialplan_detail_order asc";
|
||||
$parameters['dialplan_uuid'] = $dialplan_uuid;
|
||||
|
|
|
|||
Loading…
Reference in New Issue