From e535ba0f98916bfbffc1d451d9e8db2c7af4db7b Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 9 Oct 2008 13:16:23 +0000
Subject: [PATCH] Fixed client_group_id bug.

---
 interface/web/sites/web_domain_edit.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/web/sites/web_domain_edit.php b/interface/web/sites/web_domain_edit.php
index e757854e9e..91a8e5a0f1 100644
--- a/interface/web/sites/web_domain_edit.php
+++ b/interface/web/sites/web_domain_edit.php
@@ -229,7 +229,7 @@ class page_action extends tform_actions {
 			$client_id = intval($client["client_id"]);
 		} else {
 			//$client_id = intval($this->dataRecord["client_group_id"]);
-			$client = $app->db->queryOneRecord("SELECT client_id FROM sys_group WHERE sys_group.groupid = ".intval($this->dataRecord["sys_groupid"]));
+			$client = $app->db->queryOneRecord("SELECT client_id FROM sys_group WHERE sys_group.groupid = ".intval($this->dataRecord["client_group_id"]));
 			$client_id = intval($client["client_id"]);
 		}
 		
-- 
GitLab