From d6fa81a028357d17b7a5cc798130fddffecb5871 Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Wed, 14 Aug 2013 12:41:20 -0400
Subject: [PATCH] - Fixed: template handling via remoting - and typo
---
interface/web/client/client_edit.php | 2 +-
interface/lib/classes/remoting.inc.php | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php
index 3a3d59a..ca5928e 100644
--- a/interface/lib/classes/remoting.inc.php
+++ b/interface/lib/classes/remoting.inc.php
@@ -1204,6 +1204,7 @@
}
$app->uses('remoting_lib');
+ $app->remoting_lib->loadFormDef('../client/form/' . (isset($params['limit_client']) && $params['limit_client'] > 0 ? 'reseller' : 'client') . '.tform.php');
$old_rec = $app->remoting_lib->getDataRecord($client_id);
// we need the previuos templates assigned here
@@ -1215,7 +1216,7 @@
foreach($tpls as $item) {
$item = trim($item);
if(!$item) continue;
- $this->oldTemplatesAssigned[] = array('assigned_templated_id' => 0, 'client_template_id' => $item, 'client_id' => $client_id);
+ $this->oldTemplatesAssigned[] = array('assigned_template_id' => 0, 'client_template_id' => $item, 'client_id' => $client_id);
}
unset($tpls);
}
diff --git a/interface/web/client/client_edit.php b/interface/web/client/client_edit.php
index e71b08b..ab33d9e 100644
--- a/interface/web/client/client_edit.php
+++ b/interface/web/client/client_edit.php
@@ -102,7 +102,7 @@
foreach($tpls as $item) {
$item = trim($item);
if(!$item) continue;
- $this->oldTemplatesAssigned[] = array('assigned_templated_id' => 0, 'client_template_id' => $item, 'client_id' => $this->id);
+ $this->oldTemplatesAssigned[] = array('assigned_template_id' => 0, 'client_template_id' => $item, 'client_id' => $this->id);
}
unset($tpls);
}
--
Gitblit v1.9.1