From 38adb8013054996b11933ccc2d4b3f33b1ddea86 Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Thu, 18 Jun 2020 15:16:22 -0400 Subject: [PATCH] Add IVR menu-back (#5307) * Update app_config.php * Update app_languages.php * Update ivr_menu_edit.php --- app/ivr_menus/app_config.php | 4 ++++ app/ivr_menus/app_languages.php | 21 +++++++++++++++++++++ app/ivr_menus/ivr_menu_edit.php | 1 + 3 files changed, 26 insertions(+) diff --git a/app/ivr_menus/app_config.php b/app/ivr_menus/app_config.php index cca6fed5d9..43a68f709c 100644 --- a/app/ivr_menus/app_config.php +++ b/app/ivr_menus/app_config.php @@ -67,6 +67,10 @@ $apps[$x]['destinations'][$y]['result']['data'][$z]['name'] = 'menu-top'; $apps[$x]['destinations'][$y]['result']['data'][$z]['application'] = 'menu-top'; $z++; + $apps[$x]['destinations'][$y]['result']['data'][$z]['label'] = 'back'; + $apps[$x]['destinations'][$y]['result']['data'][$z]['label'] = 'back'; + $apps[$x]['destinations'][$y]['result']['data'][$z]['name'] = 'menu-back'; + $z++; $apps[$x]['destinations'][$y]['result']['data'][$z]['label'] = 'exit'; $apps[$x]['destinations'][$y]['result']['data'][$z]['name'] = 'menu-exit'; //menu-say-phrase diff --git a/app/ivr_menus/app_languages.php b/app/ivr_menus/app_languages.php index f8dc93c149..62e135c59f 100644 --- a/app/ivr_menus/app_languages.php +++ b/app/ivr_menus/app_languages.php @@ -169,6 +169,27 @@ $text['option-top']['ru-ru'] = ""; $text['option-top']['sv-se'] = ""; $text['option-top']['uk-ua'] = ""; +$text['option-back']['en-us'] = "Back"; +$text['option-back']['en-gb'] = "Back"; +$text['option-back']['ar-eg'] = ""; +$text['option-back']['de-at'] = ""; //copied from de-de +$text['option-back']['de-ch'] = ""; //copied from de-de +$text['option-back']['de-de'] = ""; +$text['option-back']['es-cl'] = ""; +$text['option-back']['es-mx'] = ""; //copied from es-cl +$text['option-back']['fr-ca'] = ""; //copied from fr-fr +$text['option-back']['fr-fr'] = ""; +$text['option-back']['he-il'] = ""; +$text['option-back']['it-it'] = ""; +$text['option-back']['nl-nl'] = ""; +$text['option-back']['pl-pl'] = ""; +$text['option-back']['pt-br'] = ""; //copied from pt-pt +$text['option-back']['pt-pt'] = ""; +$text['option-back']['ro-ro'] = ""; +$text['option-back']['ru-ru'] = ""; +$text['option-back']['sv-se'] = ""; +$text['option-back']['uk-ua'] = ""; + $text['message-maximum_ivr_menus']['en-us'] = "Maximum IVR Menus:"; $text['message-maximum_ivr_menus']['en-gb'] = "Maximum IVR Menus:"; $text['message-maximum_ivr_menus']['ar-eg'] = ""; diff --git a/app/ivr_menus/ivr_menu_edit.php b/app/ivr_menus/ivr_menu_edit.php index 9212395e39..ef823ffa5a 100644 --- a/app/ivr_menus/ivr_menu_edit.php +++ b/app/ivr_menus/ivr_menu_edit.php @@ -393,6 +393,7 @@ $cache = new cache; $cache->delete("dialplan:".$_SESSION["context"]); $cache->delete("configuration:ivr.conf:".$ivr_menu_uuid); + $cache->delete("configuration:ivr.conf:".$ivr_menu_parent_uuid); //set the add message if ($action == "add" && permission_exists('ivr_menu_add')) {