Update call_flow_edit.php

Fix the call flow alternate sounds so it saves to the database and its value is displayed when loading the form.
This commit is contained in:
FusionPBX 2016-06-11 09:49:22 -06:00 committed by GitHub
parent ca6b094f1e
commit 7529c36731
1 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2012 Portions created by the Initial Developer are Copyright (C) 2008-2016
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
@ -60,7 +60,7 @@ else {
$call_flow_sound = check_str($_POST["call_flow_sound"]); $call_flow_sound = check_str($_POST["call_flow_sound"]);
$call_flow_destination = check_str($_POST["call_flow_destination"]); $call_flow_destination = check_str($_POST["call_flow_destination"]);
$call_flow_alternate_label = check_str($_POST["call_flow_alternate_label"]); $call_flow_alternate_label = check_str($_POST["call_flow_alternate_label"]);
$call_flow_alternate_sound = check_str($_POST["call_flow_sound_off"]); $call_flow_alternate_sound = check_str($_POST["call_flow_alternate_sound"]);
$call_flow_alternate_destination = check_str($_POST["call_flow_alternate_destination"]); $call_flow_alternate_destination = check_str($_POST["call_flow_alternate_destination"]);
$call_flow_description = check_str($_POST["call_flow_description"]); $call_flow_description = check_str($_POST["call_flow_description"]);
$dialplan_uuid = check_str($_POST["dialplan_uuid"]); $dialplan_uuid = check_str($_POST["dialplan_uuid"]);
@ -161,7 +161,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'$call_flow_app', "; $sql .= "'$call_flow_app', ";
$sql .= "'$call_flow_data', "; $sql .= "'$call_flow_data', ";
$sql .= "'$call_flow_alternate_label', "; $sql .= "'$call_flow_alternate_label', ";
$sql .= "'$call_flow_alternate_sound' "; $sql .= "'$call_flow_alternate_sound', ";
$sql .= "'$call_flow_alternate_app', "; $sql .= "'$call_flow_alternate_app', ";
$sql .= "'$call_flow_alternate_data', "; $sql .= "'$call_flow_alternate_data', ";
$sql .= "'$call_flow_description' "; $sql .= "'$call_flow_description' ";
@ -387,7 +387,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$call_flow_pin_number = $row["call_flow_pin_number"]; $call_flow_pin_number = $row["call_flow_pin_number"];
$call_flow_data = $row["call_flow_data"]; $call_flow_data = $row["call_flow_data"];
$call_flow_alternate_label = $row["call_flow_alternate_label"]; $call_flow_alternate_label = $row["call_flow_alternate_label"];
$call_flow_alternate_sound = $row["call_flow_sound_off"]; $call_flow_alternate_sound = $row["call_flow_alternate_sound"];
$call_flow_alternate_app = $row["call_flow_alternate_app"]; $call_flow_alternate_app = $row["call_flow_alternate_app"];
$call_flow_alternate_data = $row["call_flow_alternate_data"]; $call_flow_alternate_data = $row["call_flow_alternate_data"];
$call_flow_description = $row["call_flow_description"]; $call_flow_description = $row["call_flow_description"];