mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
IVR Menu change make sure to update the dialplan xml file after an update.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user