Commit 03e39417 authored by Helmo's avatar Helmo

Pass a client_id to getDataRecord() to not override a session in loadUserProfile()

parent 54c38fc4
......@@ -383,7 +383,7 @@ class remoting {
$app->remoting_lib->loadFormDef($formdef_file);
//* get old record and merge with params, so only new values have to be set in $params
$old_rec = $app->remoting_lib->getDataRecord($primary_id);
$old_rec = $app->remoting_lib->getDataRecord($primary_id, $client_id);
foreach ($app->remoting_lib->formDef['fields'] as $fieldName => $fieldConf)
{
......
......@@ -225,10 +225,10 @@ class remoting_lib extends tform_base {
return $sql;
}
function getDataRecord($primary_id) {
function getDataRecord($primary_id, $client_id) {
global $app;
$escape = '`';
$this->loadUserProfile();
$this->loadUserProfile($client_id);
if(@is_numeric($primary_id)) {
if($primary_id > 0) {
// Return a single record
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment