fix: [sync] Fixed an issue preventing sharing group distributed data from being pushed

pull/3880/head
iglocska 2018-11-15 14:57:41 +01:00
parent feec890c8c
commit 7c34e9bbee
1 changed files with 3 additions and 1 deletions

View File

@ -199,7 +199,9 @@ class SharingGroup extends AppModel
'conditions' => array('id' => $sgo['org_id'])
));
}
$sgo['Organisation'] = $this->__sgoCache[$sgo['org_id']];
if (!empty($this->__sgoCache[$sgo['org_id']]['Organisation'])) {
$sgo['Organisation'] = $this->__sgoCache[$sgo['org_id']]['Organisation'];
}
}
}
}