Skip to content

Commit 7042add

Browse files
author
Marius Cramer
committed
Merge branch 'master' of git.ispconfig.org:ispconfig/ispconfig3
2 parents 0e41dea + 8abd175 commit 7042add

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interface/web/client/domain_del.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function onBeforeDelete() {
8080
$app->error($wb['error_domain_in mailuse']);
8181
}
8282

83-
$sql = "SELECT domain_id FROM web_domain WHERE domain = '" . $app->db->quote($domain) . "'";
83+
$sql = "SELECT domain_id FROM web_domain WHERE (domain = '" . $app->db->quote($domain) . "' AND type IN ('alias', 'vhost', 'vhostalias')) OR (domain LIKE '%." . $app->db->quote($domain) . "' AND type IN ('subdomain', 'vhostsubdomain'))";
8484
$res = $app->db->queryOneRecord($sql);
8585
if (is_array($res)){
8686
$app->error($wb['error_domain_in webuse']);

interface/web/client/domain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function onShowEnd() {
8989
if(is_array($clients)) {
9090
foreach( $clients as $client) {
9191
$selected = ($client["groupid"] == $tmp_data_record["sys_groupid"])?'SELECTED':'';
92-
$client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n";
92+
$client_select .= "<option value='$client[groupid]' $selected>$client[contactname]</option>\r\n";
9393
}
9494
}
9595
$app->tpl->setVar("client_group_id", $client_select);

0 commit comments

Comments
 (0)