From 977ef8a37b6721836be6fe6fbcd967d17e92d2c4 Mon Sep 17 00:00:00 2001 From: Nuno Miguel Reis Date: Fri, 24 Jan 2014 06:38:38 +0000 Subject: [PATCH] fixed ivr_menu_option details being passed to ivr_menu class --- app/ivr_menu/ivr_menu_edit.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/app/ivr_menu/ivr_menu_edit.php b/app/ivr_menu/ivr_menu_edit.php index 49c0c03d8f..38eaf7f794 100644 --- a/app/ivr_menu/ivr_menu_edit.php +++ b/app/ivr_menu/ivr_menu_edit.php @@ -26,6 +26,7 @@ require_once "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; +require_once "resources/classes/logging.php"; if (permission_exists('ivr_menu_add') || permission_exists('ivr_menu_edit')) { //access granted } @@ -40,6 +41,10 @@ else { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } + $log = new Logging(); + $log->log("debug", "passed validation, line 45"); + $log->log("debug", check_str($_POST["ivr_menu_uuid"])); + //function to show the list of sound files function recur_sounds_dir($dir) { global $dir_array; @@ -658,22 +663,20 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; } } - unset($sql, $result); +unset($sql, $result); - if (strlen($ivr_menu_uuid) > 0) { $options = array(0); } - if (strlen($ivr_menu_uuid) == 0) { $options = array(0,1,2,3,4); } - foreach ($options as $x) { +for ($c = 0; $c < 1; $c++) { echo " \n"; echo "\n"; - echo " \n"; + echo " \n"; echo "\n"; echo "\n"; $tmp_select_value = ''; - switch_select_destination("ivr", $ivr_menu_options_label, 'ivr_menu_options['.$x.'][ivr_menu_option_param]', $tmp_select_value, "width:175px", $ivr_menu_option_action); + switch_select_destination("ivr", $ivr_menu_options_label, 'ivr_menu_options['.$c.'][ivr_menu_option_param]', $tmp_select_value, "width:175px", $ivr_menu_option_action); unset($tmp_select_value); echo "\n"; echo "\n"; - echo " \n"; //echo " \n"; if (strlen(htmlspecialchars($ivr_menu_option_order))> 0) { echo " \n"; @@ -694,7 +697,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "\n"; echo " \n";