Update time_condition_edit.php

This commit is contained in:
FusionPBX 2016-10-14 08:21:45 -06:00 committed by GitHub
parent 745bc6479e
commit 4dcc349d2a
1 changed files with 395 additions and 388 deletions

View File

@ -81,7 +81,9 @@
}
}
//process the http post values
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//check for all required data
//if (strlen($domain_uuid) == 0) { $msg .= $text['label-required-domain_uuid']."<br>\n"; }
if (strlen($dialplan_name) == 0) { $msg .= $text['label-required-dialplan_name']."<br>\n"; }
@ -356,7 +358,6 @@
} //if
} //for each
//continue adding to query only if conditions exist in current group
if ($group_conditions_exist[$group_id]) {
@ -438,7 +439,6 @@
} //for each
//add to query for default anti-action (if defined)
if (strlen($dialplan_anti_action_app) > 0) {
@ -496,6 +496,13 @@
//commit the atomic transaction
$count = $db->exec("COMMIT;"); //returns affected rows
//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;
$cache->delete("dialplan:".$_SESSION["context"]);