From ef05dbc8883a7ad55f65ab0363127eb663b02805 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 21 Apr 2015 18:17:25 +0000 Subject: [PATCH] Save the ivr menu then update the dialplan. --- app/ivr_menu/ivr_menu_edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"]);