From fbc6c79ee50f102f91b8dce009cf489a4ff0b9a9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 25 Jul 2017 22:05:35 -0600 Subject: [PATCH] Update destination_edit.php --- 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 9dd1fadb6a..9e431c247f 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -353,7 +353,7 @@ $sql = "delete from v_dialplan_details "; $sql .= "where dialplan_uuid = '".$dialplan_uuid."' "; if (!permission_exists('destination_domain')) { - $sql .= "where (domain_uuid = '".$domain_uuid."' or domain_uuid is null) "; + $sql .= "and (domain_uuid = '".$domain_uuid."' or domain_uuid is null) "; } //echo $sql."

"; $db->exec(check_sql($sql));