Skip to content

Commit ebbc3f1

Browse files
author
Till Brehm
committed
Fixed Issue #3948 reseller missing '*' option in ipv4 address.
1 parent cb0be91 commit ebbc3f1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

interface/web/sites/web_vhost_domain_edit.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,17 @@ function onShowEnd() {
305305

306306
$app->tpl->setVar("server_id", $options_web_servers);
307307
unset($options_web_servers);
308+
309+
if($this->id > 0) {
310+
if(!isset($this->dataRecord["server_id"])){
311+
$tmp = $app->db->queryOneRecord("SELECT server_id FROM web_domain WHERE domain_id = ?", $this->id);
312+
$this->dataRecord["server_id"] = $tmp["server_id"];
313+
unset($tmp);
314+
}
315+
$server_id = intval(@$this->dataRecord["server_id"]);
316+
} else {
317+
$server_id = (isset($web_servers[0])) ? intval($web_servers[0]) : 0;
318+
}
308319

309320
if ($settings['use_domain_module'] != 'y') {
310321
// Fill the client select field

0 commit comments

Comments
 (0)