From 8be46305a0d2daafe15d4fcdbdc8fd359d5d5cba Mon Sep 17 00:00:00 2001 From: Nuno Miguel Reis Date: Fri, 24 Jan 2014 06:38:46 +0000 Subject: [PATCH] added meta update block again, since was causing issues like duplicate ivr_menus, one per each option added. (let it be this way until Mark decides how the new pattern will work) --- app/ivr_menu/ivr_menu_edit.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/ivr_menu/ivr_menu_edit.php b/app/ivr_menu/ivr_menu_edit.php index 38eaf7f794..af6c1ca4aa 100644 --- a/app/ivr_menu/ivr_menu_edit.php +++ b/app/ivr_menu/ivr_menu_edit.php @@ -285,6 +285,16 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $switch_cmd = "memcache delete dialplan:".$_SESSION["context"]; $switch_result = event_socket_request($fp, 'api '.$switch_cmd); } + + //redirect the user + require_once "resources/header.php"; + echo "\n"; + echo "
\n"; + echo $text['message-update']."\n"; + echo "
\n"; + require_once "resources/footer.php"; + return; + } //if ($_POST["persistformvar"] != "true") } //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)