From e6e850f443b879de589fc6a3d14509773311de20 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 26 Dec 2010 11:59:24 -0500
Subject: [PATCH] Fixed: FS#1441 - SSL Domain field not populating on error
---
interface/web/sites/web_domain_edit.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/interface/web/sites/web_domain_edit.php b/interface/web/sites/web_domain_edit.php
index 0fda7b2..0b47a3f 100644
--- a/interface/web/sites/web_domain_edit.php
+++ b/interface/web/sites/web_domain_edit.php
@@ -196,7 +196,8 @@
}
$ssl_domain_select = '';
- $ssl_domains = array($this->dataRecord["domain"],'www.'.$this->dataRecord["domain"]);
+ $tmp = $app->db->queryOneRecord("SELECT domain FROM web_domain WHERE domain_id = ".$this->id);
+ $ssl_domains = array($tmp["domain"],'www.'.$tmp["domain"]);
if(is_array($ssl_domains)) {
foreach( $ssl_domains as $ssl_domain) {
$selected = ($ssl_domain == $this->dataRecord['ssl_domain'])?'SELECTED':'';
--
Gitblit v1.9.1