diff --git a/customer_domains.php b/customer_domains.php index 50681cf2..e50173e1 100644 --- a/customer_domains.php +++ b/customer_domains.php @@ -480,6 +480,17 @@ if ($page == 'overview') { } elseif ($page == 'domainssleditor') { if ($action == '' || $action == 'view') { + + // get domain + try { + $json_result = SubDomains::getLocal($userinfo, array( + 'id' => $id + ))->get(); + } catch (Exception $e) { + \Froxlor\UI\Response::dynamic_error($e->getMessage()); + } + $result_domain = json_decode($json_result, true)['data']; + if (isset($_POST['send']) && $_POST['send'] == 'send') { $do_insert = isset($_POST['do_insert']) ? (($_POST['do_insert'] == 1) ? true : false) : false; try { diff --git a/lib/formfields/customer/domains/formfield.domain_ssleditor.php b/lib/formfields/customer/domains/formfield.domain_ssleditor.php index e6a14faa..3518ef39 100644 --- a/lib/formfields/customer/domains/formfield.domain_ssleditor.php +++ b/lib/formfields/customer/domains/formfield.domain_ssleditor.php @@ -23,6 +23,12 @@ return array( 'title' => 'SSL certificates', 'image' => 'icons/ssl.png', 'fields' => array( + 'domainname' => array( + 'label' => $lng['domains']['domainname'], + 'type' => 'hidden', + 'value' => $result_domain['domain'], + 'display' => $result_domain['domain'] + ), 'ssl_cert_file' => array( 'style' => 'align-top', 'label' => $lng['admin']['ipsandports']['ssl_cert_file_content'],