Till Brehm
2016-07-23 5501be8a358c44707752aa6d857af09599b4bfa9
Fixed #3980 Subdomain (vhost) - Domain added to host each save
1 files modified
7 ■■■■ changed files
interface/web/sites/web_vhost_domain_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/web_vhost_domain_edit.php
@@ -802,11 +802,16 @@
                $domain_select .= "<option value=''></option>\r\n";
            }
            $app->tpl->setVar("domain_option", $domain_select);
        } else {
            // remove the parent domain part of the domain name before we show it in the text field.
            if($this->dataRecord["type"] == 'vhostsubdomain') $this->dataRecord["domain"] = str_replace('.'.$selected_domain, '', $this->dataRecord["domain"]);
        } else {
            // remove the parent domain part of the domain name before we show it in the text field.
            if($this->dataRecord["type"] == 'vhostsubdomain') $this->dataRecord["domain"] = str_replace('.'.$parent_domain["domain"], '', $this->dataRecord["domain"]);
        }
        if($this->_vhostdomain_type != 'domain') $app->tpl->setVar("domain", $this->dataRecord["domain"]);
        // check for configuration errors in sys_datalog