We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb0be91 commit ebbc3f1Copy full SHA for ebbc3f1
interface/web/sites/web_vhost_domain_edit.php
@@ -305,6 +305,17 @@ function onShowEnd() {
305
306
$app->tpl->setVar("server_id", $options_web_servers);
307
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
319
320
if ($settings['use_domain_module'] != 'y') {
321
// Fill the client select field
0 commit comments