Save the ivr menu then update the dialplan.

This commit is contained in:
Mark Crane
2015-04-21 18:17:25 +00:00
parent 2521f8bd1c
commit ef05dbc888

View File

@@ -215,9 +215,6 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$_SESSION['message'] = $text['message-update'];
}
//synchronize the xml config
save_dialplan_xml();
//add the ivr menu options
if (($action == "add" && permission_exists('ivr_menu_add')) || ($action == "update" && permission_exists('ivr_menu_edit'))) {
require_once "resources/classes/database.php";
@@ -247,6 +244,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
}
//synchronize the xml config
save_dialplan_xml();
//clear the cache
$cache = new cache;
$cache->delete("dialplan:".$_SESSION["context"]);