From 0a957fb45dc1fe452ed5d0b0aa25489e39a69162 Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Fri, 09 Aug 2013 08:23:57 -0400
Subject: [PATCH] - Fixed missing reset of template_additional column after converting to new style

---
 interface/lib/classes/client_templates.inc.php |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/interface/lib/classes/client_templates.inc.php b/interface/lib/classes/client_templates.inc.php
index 181f741..b9b5dbb 100644
--- a/interface/lib/classes/client_templates.inc.php
+++ b/interface/lib/classes/client_templates.inc.php
@@ -80,6 +80,7 @@
             // we have to call the update_client_templates function
             $templates = explode('/', $record['template_additional']);
             $this->update_client_templates($clientId, $templates);
+            $app->db->query('UPDATE `client` SET `template_additional` = '' WHERE `client_id` = ' . $app->functions->intval($clientId));
         }
         
         /*

--
Gitblit v1.9.1