mcramer
2013-08-14 d6fa81a028357d17b7a5cc798130fddffecb5871
- Fixed: template handling via remoting - and typo

2 files modified
5 ■■■■■ changed files
interface/lib/classes/remoting.inc.php 3 ●●●● patch | view | raw | blame | history
interface/web/client/client_edit.php 2 ●●● patch | view | raw | blame | history
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);
            }
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);
            }