diff --git a/app/ivr_menus/ivr_menu_edit.php b/app/ivr_menus/ivr_menu_edit.php
index ba40a6019c..78d87139ed 100644
--- a/app/ivr_menus/ivr_menu_edit.php
+++ b/app/ivr_menus/ivr_menu_edit.php
@@ -124,6 +124,15 @@
//process the http data
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
+ //set the domain_uuid
+ if (permission_exists('ivr_menu_domain')) {
+ $domain_uuid = $_POST["domain_uuid"];
+ }
+ else {
+ $_POST["domain_uuid"] = $_SESSION['domain_uuid'];
+ $domain_uuid = $_SESSION['domain_uuid'];
+ }
+
//check for all required data
$msg = '';
if (strlen($ivr_menu_name) == 0) { $msg .= $text['message-required'].$text['label-name']."
\n"; }
@@ -1319,6 +1328,28 @@
echo "\n";
echo "\n";
+ if (permission_exists('ivr_menu_domain')) {
+ echo "