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