From 9f85e932d36ce6e32aad4bc678b15b5f2e6b4535 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 18 Dec 2013 23:20:14 +0000 Subject: [PATCH] IVR Menu change make sure to update the dialplan xml file after an update. --- 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 8b587349eb..11da267a04 100644 --- a/app/ivr_menu/ivr_menu_edit.php +++ b/app/ivr_menu/ivr_menu_edit.php @@ -225,9 +225,6 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { //run the add method in the ivr menu class $ivr->add(); - //synchronize the xml config - save_dialplan_xml(); - //set the message $_SESSION['message'] = $text['message-add']; } @@ -245,6 +242,9 @@ 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";