Update dialplan_outbound_add.php

This commit is contained in:
FusionPBX 2016-10-21 13:28:13 -06:00 committed by GitHub
parent 0e45593e33
commit 2b164abf44
1 changed files with 369 additions and 368 deletions

View File

@ -183,6 +183,7 @@
return;
}
//prepare to build the array
if (strlen(trim($_POST['dialplan_expression'])) > 0) {
$tmp_array = explode("\n", $_POST['dialplan_expression']);
@ -394,6 +395,7 @@
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = '0';
}
else {
$y++;
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_uuid'] = uuid();
$array['dialplans'][$x]['dialplan_details'][$y]['domain_uuid'] = $_SESSION['domain_uuid'];
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_uuid'] = $dialplan_uuid;
@ -590,7 +592,6 @@
} //end for each
}
//save to the data
$database = new database;
$database->app_name = 'outbound_routes';