From d31d028a0c7e3a3625977d531dc4c47258c77d0c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 22 Jan 2023 11:19:50 -0700 Subject: [PATCH] Upgrade: Enable ring group destinations by default --- app/ring_groups/app_defaults.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/ring_groups/app_defaults.php b/app/ring_groups/app_defaults.php index 030e868554..052547f4cb 100644 --- a/app/ring_groups/app_defaults.php +++ b/app/ring_groups/app_defaults.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2019 + Portions created by the Initial Developer are Copyright (C) 2019 - 2023 the Initial Developer. All Rights Reserved. Contributor(s): @@ -63,6 +63,14 @@ if ($domains_processed == 1) { } } + //enable ring group destinations by default + $sql = "update v_ring_group_destinations "; + $sql .= "set destination_enabled = true "; + $sql .= "where destination_enabled is null; "; + $database = new database; + $database->execute($sql, null); + unset($sql); + } ?>