Skip to content

Commit 35cc408

Browse files
committed
Implemented client template support in remoting API: FS#1308
1 parent d7ef36d commit 35cc408

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

interface/lib/classes/remoting.inc.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,14 @@ private function klientadd($formdef_file, $reseller_id, $params)
19221922
$app->remoting_lib->loadFormDef($formdef_file);
19231923

19241924
//* load the user profile of the client
1925-
$app->remoting_lib->loadUserProfile($reseller_id);
1925+
$app->remoting_lib->loadUserProfile($reseller_id);
1926+
1927+
//* load the client template
1928+
if(isset($params['template_master']) and $params['template_master'])
1929+
{
1930+
$template=$app->db->queryOneRecord("SELECT * FROM client_template WHERE template_id=".intval($params['template_master']));
1931+
$params=array_merge($params,$template);
1932+
}
19261933

19271934
//* Get the SQL query
19281935
$sql = $app->remoting_lib->getSQL($params,'INSERT',0);

0 commit comments

Comments
 (0)