Update dialplan_outbound_add.php (#7444)

change to row order for gateways dropdown, previous code didnt groups gateways for other domains together
This commit is contained in:
graycom-git
2025-08-03 15:19:56 +01:00
committed by GitHub
parent 9dc4ee9046
commit 134ce77d63

View File

@@ -879,7 +879,7 @@
$sql = "select * from v_gateways ";
$sql .= "where enabled = 'true' ";
if (permission_exists('outbound_route_any_gateway')) {
$sql .= "order by domain_uuid = :domain_uuid DESC, gateway ";
$sql .= "order by CASE WHEN domain_uuid = :domain_uuid THEN 0 ELSE 1 END, domain_uuid DESC, gateway ";
}
else {
$sql .= "and domain_uuid = :domain_uuid ";