Add missing fields to dialplan copy: dialplan inline, break, and groups.
This commit is contained in:
parent
9c662eef1e
commit
61d88f46d8
|
|
@ -113,11 +113,15 @@ else {
|
|||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
$domain_uuid = $row["domain_uuid"];
|
||||
$dialplan_detail_tag = $row["dialplan_detail_tag"];
|
||||
$dialplan_detail_order = $row["dialplan_detail_order"];
|
||||
$dialplan_detail_type = $row["dialplan_detail_type"];
|
||||
$dialplan_detail_data = $row["dialplan_detail_data"];
|
||||
//set the variables
|
||||
$domain_uuid = $row["domain_uuid"];
|
||||
$dialplan_detail_tag = $row["dialplan_detail_tag"];
|
||||
$dialplan_detail_order = $row["dialplan_detail_order"];
|
||||
$dialplan_detail_type = $row["dialplan_detail_type"];
|
||||
$dialplan_detail_data = $row["dialplan_detail_data"];
|
||||
$dialplan_detail_break = $row["dialplan_detail_break"];
|
||||
$dialplan_detail_inline = $row["dialplan_detail_inline"];
|
||||
$dialplan_detail_group = $row["dialplan_detail_group"];
|
||||
|
||||
//copy the dialplan details
|
||||
$dialplan_detail_uuid = uuid();
|
||||
|
|
@ -129,7 +133,10 @@ else {
|
|||
$sql .= "dialplan_detail_tag, ";
|
||||
$sql .= "dialplan_detail_order, ";
|
||||
$sql .= "dialplan_detail_type, ";
|
||||
$sql .= "dialplan_detail_data ";
|
||||
$sql .= "dialplan_detail_data, ";
|
||||
$sql .= "dialplan_detail_break, ";
|
||||
$sql .= "dialplan_detail_inline, ";
|
||||
$sql .= "dialplan_detail_group ";
|
||||
$sql .= ")";
|
||||
$sql .= "values ";
|
||||
$sql .= "(";
|
||||
|
|
@ -139,7 +146,15 @@ else {
|
|||
$sql .= "'".check_str($dialplan_detail_tag)."', ";
|
||||
$sql .= "'".check_str($dialplan_detail_order)."', ";
|
||||
$sql .= "'".check_str($dialplan_detail_type)."', ";
|
||||
$sql .= "'".check_str($dialplan_detail_data)."' ";
|
||||
$sql .= "'".check_str($dialplan_detail_data)."', ";
|
||||
$sql .= "'".$dialplan_detail_break."', ";
|
||||
$sql .= "'".$dialplan_detail_inline."', ";
|
||||
if (strlen($dialplan_detail_group) == 0) {
|
||||
$sql .= "'".$dialplan_detail_group."' ";
|
||||
}
|
||||
else {
|
||||
$sql .= "'".$dialplan_detail_group."' ";
|
||||
}
|
||||
$sql .= ")";
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
|
|
@ -170,4 +185,4 @@ else {
|
|||
header("Location: ".$redirect_url);
|
||||
return;
|
||||
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue