IVR Menu change make sure to update the dialplan xml file after an update.

This commit is contained in:
Mark Crane
2013-12-18 23:20:14 +00:00
parent e8dbf586f5
commit 9f85e932d3

View File

@@ -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";