From 1f3c4a60d85b8ab3a9b86dd924226924431180a1 Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Sat, 3 Jun 2023 21:45:08 +0200 Subject: [PATCH] Preserve request params to check template_additional, #6507 --- interface/lib/classes/remote.d/client.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/lib/classes/remote.d/client.inc.php b/interface/lib/classes/remote.d/client.inc.php index b5a0b421d7..8dde46bf09 100644 --- a/interface/lib/classes/remote.d/client.inc.php +++ b/interface/lib/classes/remote.d/client.inc.php @@ -200,6 +200,7 @@ class remoting_client extends remoting { $old_rec = $app->remoting_lib->getDataRecord($client_id); //* merge old record with params, so only new values have to be set in $params + $params_req = $params; $params = $app->functions->array_merge($old_rec,$params); if(!isset($params['parent_client_id']) || $params['parent_client_id'] == 0) $params['parent_client_id'] = $reseller_id; @@ -231,7 +232,7 @@ class remoting_client extends remoting { } unset($tpls); } - if(isset($params['template_additional'])) { + if(isset($params_req['template_additional'])) { $app->uses('client_templates'); $templates = explode('/', $params['template_additional']); $params['template_additional'] = ''; -- GitLab