mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add dialplan detail inline and group.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user