Add dialplan detail inline and group.

This commit is contained in:
markjcrane 2015-10-10 16:35:04 -07:00
parent b8f5337b14
commit 71ddf1953e
1 changed files with 7 additions and 2 deletions

View File

@ -123,6 +123,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$detail_action = "add"; $detail_action = "add";
foreach ($result as $row) { foreach ($result as $row) {
$dialplan_detail_uuid = $row["dialplan_detail_uuid"]; $dialplan_detail_uuid = $row["dialplan_detail_uuid"];
$dialplan_detail_group = $row["dialplan_detail_group"];
$detail_action = "update"; $detail_action = "update";
} }
unset ($prep_statement); unset ($prep_statement);
@ -141,7 +142,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "dialplan_uuid, "; $sql .= "dialplan_uuid, ";
$sql .= "dialplan_detail_tag, "; $sql .= "dialplan_detail_tag, ";
$sql .= "dialplan_detail_type, "; $sql .= "dialplan_detail_type, ";
$sql .= "dialplan_detail_data "; $sql .= "dialplan_detail_data, ";
$sql .= "dialplan_detail_inline, ";
$sql .= "dialplan_detail_group ";
$sql .= ") "; $sql .= ") ";
$sql .= "values "; $sql .= "values ";
$sql .= "("; $sql .= "(";
@ -150,7 +153,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'".$dialplan_uuid."', "; $sql .= "'".$dialplan_uuid."', ";
$sql .= "'action', "; $sql .= "'action', ";
$sql .= "'set', "; $sql .= "'set', ";
$sql .= "'timezone=".$domain_setting_value."' "; $sql .= "'timezone=".$domain_setting_value."', ";
$sql .= "'true', ";
$sql .= "'".$dialplan_detail_group."' ";
$sql .= "); "; $sql .= "); ";
} }
$db->query($sql); $db->query($sql);