Skip to content

Commit 03e3941

Browse files
committed
Pass a client_id to getDataRecord() to not override a session in loadUserProfile()
1 parent 54c38fc commit 03e3941

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

interface/lib/classes/remoting.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ protected function updateQueryPrepare($formdef_file, $client_id, $primary_id, $p
383383
$app->remoting_lib->loadFormDef($formdef_file);
384384

385385
//* get old record and merge with params, so only new values have to be set in $params
386-
$old_rec = $app->remoting_lib->getDataRecord($primary_id);
386+
$old_rec = $app->remoting_lib->getDataRecord($primary_id, $client_id);
387387

388388
foreach ($app->remoting_lib->formDef['fields'] as $fieldName => $fieldConf)
389389
{

interface/lib/classes/remoting_lib.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ function getDeleteSQL($primary_id) {
225225
return $sql;
226226
}
227227

228-
function getDataRecord($primary_id) {
228+
function getDataRecord($primary_id, $client_id) {
229229
global $app;
230230
$escape = '`';
231-
$this->loadUserProfile();
231+
$this->loadUserProfile($client_id);
232232
if(@is_numeric($primary_id)) {
233233
if($primary_id > 0) {
234234
// Return a single record

0 commit comments

Comments
 (0)