Update ivr_menu_edit.php

This commit is contained in:
FusionPBX 2019-07-13 09:23:48 -06:00 committed by GitHub
parent f9d60fd94c
commit c9f4d0148f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2018
Portions created by the Initial Developer are Copyright (C) 2008-2019
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -111,10 +111,8 @@
if (permission_exists('ivr_menu_context')) {
$ivr_menu_context = check_str($_POST["ivr_menu_context"]);
}
else {
if ($action == 'add') {
$ivr_menu_context = $_SESSION['domain_name'];
}
elseif ($action == 'add') {
$ivr_menu_context = $_SESSION['domain_name'];
}
//process the values
@ -387,10 +385,10 @@
$ivr_menu_context = $row["ivr_menu_context"];
$ivr_menu_enabled = $row["ivr_menu_enabled"];
$ivr_menu_description = $row["ivr_menu_description"];
//replace the dash with a space
$ivr_menu_name = str_replace("-", " ", $ivr_menu_name);
if (strlen($ivr_menu_exit_app) > 0) {
$ivr_menu_exit_action = $ivr_menu_exit_app.":".$ivr_menu_exit_data;
}