From 95bd56517801e6f2700291d8ebcc16dd4798bdaf Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sat, 10 Oct 2015 16:41:46 -0700 Subject: [PATCH] A few minor adjustments. --- core/domain_settings/domain_setting_edit.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/domain_settings/domain_setting_edit.php b/core/domain_settings/domain_setting_edit.php index e0bdd7bb94..d125093b49 100644 --- a/core/domain_settings/domain_setting_edit.php +++ b/core/domain_settings/domain_setting_edit.php @@ -123,7 +123,6 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $detail_action = "add"; foreach ($result as $row) { $dialplan_detail_uuid = $row["dialplan_detail_uuid"]; - $dialplan_detail_group = $row["dialplan_detail_group"]; $detail_action = "update"; } unset ($prep_statement); @@ -135,6 +134,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "where dialplan_detail_uuid = '".$dialplan_detail_uuid."' "; } else { + $dialplan_detail_uuid = uuid(); + $dialplan_detail_group = 0; $sql = "insert into v_dialplan_details "; $sql .= "("; $sql .= "domain_uuid, "; @@ -149,7 +150,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "values "; $sql .= "("; $sql .= "'".$domain_uuid."', "; - $sql .= "'".uuid()."', "; + $sql .= "'".$dialplan_detail_uuid."', "; $sql .= "'".$dialplan_uuid."', "; $sql .= "'action', "; $sql .= "'set', ";