Update time_condition_edit.php

Work on the indentation and update the dialplan xml.
This commit is contained in:
FusionPBX 2017-02-27 22:25:55 -07:00 committed by GitHub
parent 04f7811143
commit 2c25c3e341
1 changed files with 402 additions and 398 deletions

View File

@ -295,7 +295,6 @@
$is_preset = (in_array($group_id, $_REQUEST['preset'])) ? true : false;
//set group and order number
$dialplan_detail_group_user = check_str($_POST["group_$group_id"]);
if($dialplan_detail_group_user!='') {
$dialplan_detail_group = $dialplan_detail_group_user;
@ -374,7 +373,6 @@
} //if
} //for each
//continue adding to query only if conditions exist in current group
if ($group_conditions_exist[$group_id]) {
@ -456,7 +454,6 @@
}
} //for each
//add to query for default anti-action (if defined)
if (strlen($dialplan_anti_action_app) > 0) {
@ -512,7 +509,14 @@
}
//commit the atomic transaction
$count = $db->exec("COMMIT;"); //returns affected rows
$count = $db->exec("COMMIT;");
//update the dialplan xml
$dialplans = new dialplan;
$dialplans->source = "details";
$dialplans->destination = "database";
$dialplans->uuid = $dialplan_uuid;
$dialplans->xml();
//clear the cache
$cache = new cache;