Merge pull request #5553 from PBXForums/master

Update dialplan_outbound_add.php
This commit is contained in:
FusionPBX 2020-10-28 22:01:36 -06:00 committed by GitHub
commit 24ae553d14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -729,7 +729,7 @@
$sql = "select * from v_gateways ";
$sql .= "where enabled = 'true' ";
if (permission_exists('outbound_route_any_gateway')) {
$sql .= "order by domain_uuid, gateway ";
$sql .= "order by domain_uuid = '$domain_uuid' DESC, gateway ";
}
else {
$sql .= "and domain_uuid = :domain_uuid ";