You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -99,7 +99,7 @@ function webdav_domains($field, $record) {
99
99
}
100
100
if(count($server_ids) == 0) returnarray();
101
101
$server_ids = implode(',', $server_ids);
102
-
$records = $app->db->queryAllRecords("SELECT web_domain.domain_id, CONCAT(web_domain.domain, ' :: ', server.server_name) AS parent_domain FROM web_domain, server WHERE web_domain.type = 'vhost' AND web_domain.server_id IN ? AND web_domain.server_id = server.server_id AND ".$app->tform->getAuthSQL('r', 'web_domain')." ORDER BY web_domain.domain", $server_ids);
102
+
$records = $app->db->queryAllRecords("SELECT web_domain.domain_id, CONCAT(web_domain.domain, ' :: ', server.server_name) AS parent_domain FROM web_domain, server WHERE web_domain.type = 'vhost' AND web_domain.server_id IN (?) AND web_domain.server_id = server.server_id AND ".$app->tform->getAuthSQL('r', 'web_domain')." ORDER BY web_domain.domain", $server_ids);
103
103
104
104
$records_new = array();
105
105
if(is_array($records)) {
@@ -168,12 +168,12 @@ function client_servers($field, $record) {
168
168
} else {
169
169
//* Not able to find the clients defaults, use this as fallback and add a warning message to the log
170
170
$app->log('Unable to find default server for client in custom_datasource.inc.php', 1);
171
-
$sql = "SELECT server_id,server_name FROM server WHERE ?? = 1 ORDER BY server_name";
171
+
$sql = "SELECT server_id,server_name FROM server WHERE ?? = 1 AND mirror_server_id = 0 ORDER BY server_name";
0 commit comments