From 0f20f952b4031903c45ee8db89d909968dee82d1 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Mon, 23 Mar 2015 23:57:27 +0000 Subject: [PATCH] Destination: Exclude set:accountcode from being displayed in the Actions list. --- app/destinations/destination_edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 804603577a..d9836955b3 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -622,6 +622,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $order = 10; foreach($dialplan_details as $row) { if ($row["dialplan_detail_tag"] != "condition") { + if ($row["dialplan_detail_tag"] == "action" && $row["dialplan_detail_type"] == "set" && strpos($row["dialplan_detail_data"], "accountcode") == 0) { continue; } //exclude set:accountcode actions echo " \n"; echo " \n"; if (strlen($row['dialplan_detail_uuid']) > 0) { @@ -735,7 +736,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; //set the default account code - if ($action == "add") { $destination_accountcode=$_SESSION['domain_name']; } + if ($action == "add") { $destination_accountcode = $_SESSION['domain_name']; } } echo "\n";