If the group is null set to 0

This commit is contained in:
FusionPBX 2023-05-09 09:50:16 -06:00 committed by GitHub
parent 43d33fb121
commit 13d73a33e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,15 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
//update dialplan details when group is null set to 0
if ($domains_processed == 1) {
//change dialplan context ${domain_name} to global
$sql = "update v_dialplan_details set dialplan_detail_group = '0' ";
$sql .= "where dialplan_detail_group is null;\n";
$database->execute($sql);
unset($sql);
}
//get the $apps array from the installed apps from the core and mod directories
if ($domains_processed == 1) {