From 9c0487cfb31d04d9cff79c7e0cbef95d90ce11a3 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sat, 10 Oct 2015 16:35:04 -0700 Subject: [PATCH] Add dialplan detail inline and group. --- core/domain_settings/domain_setting_edit.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/domain_settings/domain_setting_edit.php b/core/domain_settings/domain_setting_edit.php index a26b93fcb2..e0bdd7bb94 100644 --- a/core/domain_settings/domain_setting_edit.php +++ b/core/domain_settings/domain_setting_edit.php @@ -123,6 +123,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $detail_action = "add"; foreach ($result as $row) { $dialplan_detail_uuid = $row["dialplan_detail_uuid"]; + $dialplan_detail_group = $row["dialplan_detail_group"]; $detail_action = "update"; } unset ($prep_statement); @@ -141,7 +142,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "dialplan_uuid, "; $sql .= "dialplan_detail_tag, "; $sql .= "dialplan_detail_type, "; - $sql .= "dialplan_detail_data "; + $sql .= "dialplan_detail_data, "; + $sql .= "dialplan_detail_inline, "; + $sql .= "dialplan_detail_group "; $sql .= ") "; $sql .= "values "; $sql .= "("; @@ -150,7 +153,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "'".$dialplan_uuid."', "; $sql .= "'action', "; $sql .= "'set', "; - $sql .= "'timezone=".$domain_setting_value."' "; + $sql .= "'timezone=".$domain_setting_value."', "; + $sql .= "'true', "; + $sql .= "'".$dialplan_detail_group."' "; $sql .= "); "; } $db->query($sql);