From 045beddf0eab55fe0cf94c43f9d146a1f3ad1e45 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 25 Jan 2009 06:30:01 -0500
Subject: [PATCH] Fixed: FS#474 - serial not updated for domain after changes 

---
 interface/web/client/tools.inc.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/interface/web/client/tools.inc.php b/interface/web/client/tools.inc.php
index 9cbf8eb..d66afc1 100644
--- a/interface/web/client/tools.inc.php
+++ b/interface/web/client/tools.inc.php
@@ -28,7 +28,7 @@
 */
 
 function applyClientTemplates($clientId){
-	global $app;
+	global $app,$page;
 	/*
 	 * Get the master-template for the client
 	 */
@@ -44,7 +44,7 @@
 		$sql = "SELECT * FROM client_template WHERE template_id = " . intval($masterTemplateId);
 		$limits = $app->db->queryOneRecord($sql);
 	} else {
-		$limits = $this->dataRecord;
+		$limits = $page->dataRecord;
 	}
 
 	/*

--
Gitblit v1.9.1