From 2c70b2274662df86fc695e8c684922ddd00eae8d Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 14 Aug 2014 06:06:20 +0000 Subject: [PATCH] Continue working on follow me prompt --- app/calls/call_edit.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/app/calls/call_edit.php b/app/calls/call_edit.php index b146bcdad6..a08373828c 100644 --- a/app/calls/call_edit.php +++ b/app/calls/call_edit.php @@ -122,22 +122,27 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $destination_data_1 = check_str($_POST["destination_data_1"]); $destination_delay_1 = check_str($_POST["destination_delay_1"]); + $destination_prompt_1 = check_str($_POST["destination_prompt_1"]); $destination_timeout_1 = check_str($_POST["destination_timeout_1"]); $destination_data_2 = check_str($_POST["destination_data_2"]); $destination_delay_2 = check_str($_POST["destination_delay_2"]); + $destination_prompt_2 = check_str($_POST["destination_prompt_2"]); $destination_timeout_2 = check_str($_POST["destination_timeout_2"]); $destination_data_3 = check_str($_POST["destination_data_3"]); $destination_delay_3 = check_str($_POST["destination_delay_3"]); + $destination_prompt_3 = check_str($_POST["destination_prompt_3"]); $destination_timeout_3 = check_str($_POST["destination_timeout_3"]); $destination_data_4 = check_str($_POST["destination_data_4"]); $destination_delay_4 = check_str($_POST["destination_delay_4"]); + $destination_prompt_4 = check_str($_POST["destination_prompt_4"]); $destination_timeout_4 = check_str($_POST["destination_timeout_4"]); $destination_data_5 = check_str($_POST["destination_data_5"]); $destination_delay_5 = check_str($_POST["destination_delay_5"]); + $destination_prompt_5 = check_str($_POST["destination_prompt_5"]); $destination_timeout_5 = check_str($_POST["destination_timeout_5"]); $dnd_enabled = check_str($_POST["dnd_enabled"]); @@ -259,26 +264,31 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $follow_me->destination_data_1 = $destination_data_1; $follow_me->destination_type_1 = $destination_type_1; $follow_me->destination_delay_1 = $destination_delay_1; + $follow_me->destination_prompt_1 = $destination_prompt_1; $follow_me->destination_timeout_1 = $destination_timeout_1; $follow_me->destination_data_2 = $destination_data_2; $follow_me->destination_type_2 = $destination_type_2; $follow_me->destination_delay_2 = $destination_delay_2; + $follow_me->destination_prompt_2 = $destination_prompt_2; $follow_me->destination_timeout_2 = $destination_timeout_2; $follow_me->destination_data_3 = $destination_data_3; $follow_me->destination_type_3 = $destination_type_3; $follow_me->destination_delay_3 = $destination_delay_3; + $follow_me->destination_prompt_3 = $destination_prompt_3; $follow_me->destination_timeout_3 = $destination_timeout_3; $follow_me->destination_data_4 = $destination_data_4; $follow_me->destination_type_4 = $destination_type_4; $follow_me->destination_delay_4 = $destination_delay_4; + $follow_me->destination_prompt_4 = $destination_prompt_4; $follow_me->destination_timeout_4 = $destination_timeout_4; $follow_me->destination_data_5 = $destination_data_5; $follow_me->destination_type_5 = $destination_type_5; $follow_me->destination_delay_5 = $destination_delay_5; + $follow_me->destination_prompt_5 = $destination_prompt_5; $follow_me->destination_timeout_5 = $destination_timeout_5; if ($follow_me_enabled == "true") { @@ -375,26 +385,31 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($x == 1) { $destination_data_1 = $row2["follow_me_destination"]; $destination_delay_1 = $row2["follow_me_delay"]; + $destination_prompt_1 = $row2["follow_me_prompt"]; $destination_timeout_1 = $row2["follow_me_timeout"]; } if ($x == 2) { $destination_data_2 = $row2["follow_me_destination"]; $destination_delay_2 = $row2["follow_me_delay"]; + $destination_prompt_2 = $row2["follow_me_prompt"]; $destination_timeout_2 = $row2["follow_me_timeout"]; } if ($x == 3) { $destination_data_3 = $row2["follow_me_destination"]; $destination_delay_3 = $row2["follow_me_delay"]; + $destination_prompt_3 = $row2["follow_me_prompt"]; $destination_timeout_3 = $row2["follow_me_timeout"]; } if ($x == 4) { $destination_data_4 = $row2["follow_me_destination"]; $destination_delay_4 = $row2["follow_me_delay"]; + $destination_prompt_4 = $row2["follow_me_prompt"]; $destination_timeout_4 = $row2["follow_me_timeout"]; } if ($x == 5) { $destination_data_5 = $row2["follow_me_destination"]; $destination_delay_5 = $row2["follow_me_delay"]; + $destination_prompt_5 = $row2["follow_me_prompt"]; $destination_timeout_5 = $row2["follow_me_timeout"]; } $x++; @@ -748,5 +763,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo ""; echo ""; -require_once "resources/footer.php"; +//include the footer + require_once "resources/footer.php"; ?> \ No newline at end of file