From f4366abdb0d0ea90b3b4dbed67e03546c7ec5b5f Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 1 May 2014 03:48:31 +0000 Subject: [PATCH] Try again. Only add the dialplan for dialplan -> destinations of the action is set --- app/destinations/destination_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index b4bcbac31b..02c51a197a 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -194,7 +194,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { } //save the dialplan - if (count($dialplan["dialplan_details"]) > 0) { + if (strlen($dialplan_details[0][dialplan_detail_data]) > 2) { $orm = new orm; $orm->name('dialplans'); if (isset($dialplan["dialplan_uuid"])) {