Commit 8a7a87f0 authored by vogelor's avatar vogelor

if you use the domain - module then the domain list (at sites + email) is sorted

parent 82d6e51a
......@@ -124,7 +124,7 @@ class page_action extends tform_actions {
$settings = $app->getconf->get_global_config('domains');
if ($settings['use_domain_module'] == 'y') {
$client_group_id = $_SESSION["s"]["user"]["default_group"];
$sql = "SELECT domain FROM domain WHERE sys_groupid =" . $client_group_id;
$sql = "SELECT domain FROM domain WHERE sys_groupid =" . $client_group_id . " ORDER BY domain";
$domains = $app->db->queryAllRecords($sql);
$domain_select = '';
if(is_array($domains)) {
......
......@@ -214,7 +214,7 @@ class page_action extends tform_actions {
$settings = $app->getconf->get_global_config('domains');
if ($settings['use_domain_module'] == 'y'){
$client_group_id = $_SESSION["s"]["user"]["default_group"];
$sql = "SELECT domain FROM domain WHERE sys_groupid =" . $client_group_id;
$sql = "SELECT domain FROM domain WHERE sys_groupid =" . $client_group_id . " ORDER BY domain";
$domains = $app->db->queryAllRecords($sql);
$domain_select = '';
if(is_array($domains) && sizeof($domains) > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment