diff --git a/app/ivr_menu/ivr_menu_edit.php b/app/ivr_menu/ivr_menu_edit.php index c80ec5d788..21ec6716af 100644 --- a/app/ivr_menu/ivr_menu_edit.php +++ b/app/ivr_menu/ivr_menu_edit.php @@ -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"]);