Skip to content

Commit e958729

Browse files
author
Marius Burkard
committed
- fixed empty ip address select for clients without default server set
1 parent a2d22c4 commit e958729

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

interface/web/sites/web_vhost_domain_edit.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ function onShowEnd() {
160160
}
161161

162162
$client['web_servers_ids'] = explode(',', $client['web_servers']);
163+
$client['web_servers_ids'][] = $this->dataRecord['server_id'];
164+
$client['web_servers_ids'] = array_unique($client['web_servers_ids']);
165+
163166
$only_one_server = count($client['web_servers_ids']) === 1;
164167
$app->tpl->setVar('only_one_server', $only_one_server);
165168

0 commit comments

Comments
 (0)