Skip to content

Commit 056b11e

Browse files
author
mcramer
committed
Bugfix: wrong host name when using domain module
1 parent d6363ba commit 056b11e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

interface/web/sites/web_vhost_subdomain_edit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ function onSubmit() {
288288
$this->dataRecord["ipv6_address"] = $parent_domain["ipv6_address"];
289289
$this->dataRecord["client_group_id"] = $parent_domain["client_group_id"];
290290
$this->dataRecord["vhost_type"] = 'name';
291-
$this->dataRecord["domain"] = $this->dataRecord["domain"].'.'.$parent_domain["domain"];
292291

293292
$this->parent_domain_record = $parent_domain;
294293

@@ -328,6 +327,8 @@ function onSubmit() {
328327
if($check && $check['cnt'] > 0) {
329328
$app->tform->errorMessage .= $app->tform->lng("web_folder_unique_txt")."<br>";
330329
}
330+
} else {
331+
$this->dataRecord["domain"] = $this->dataRecord["domain"].'.'.$parent_domain["domain"];
331332
}
332333

333334
if($_SESSION["s"]["user"]["typ"] != 'admin') {

0 commit comments

Comments
 (0)