mirror of https://github.com/MISP/MISP
Merge pull request #7219 from tomking2/bug/galaxy-cluster-sharinggroup
fix: [sync] Crash when attempting to sync with 'Pull Galaxy Clusters' enabledpull/7230/head
commit
6a8f7ff336
|
@ -818,7 +818,7 @@ class GalaxyCluster extends AppModel
|
|||
{
|
||||
$this->Event = ClassRegistry::init('Event');
|
||||
if (isset($element[$model]['distribution']) && $element[$model]['distribution'] == 4) {
|
||||
$element[$model] = $this->Event->__captureSGForElement($element[$model], $user);
|
||||
$element[$model] = $this->Event->captureSGForElement($element[$model], $user);
|
||||
}
|
||||
// first we want to see how the creator organisation is encoded
|
||||
// The options here are either by passing an organisation object along or simply passing a string along
|
||||
|
|
|
@ -475,7 +475,7 @@ class GalaxyClusterRelation extends AppModel
|
|||
|
||||
$this->Event = ClassRegistry::init('Event');
|
||||
if (isset($relation['GalaxyClusterRelation']['distribution']) && $relation['GalaxyClusterRelation']['distribution'] == 4) {
|
||||
$relation['GalaxyClusterRelation'] = $this->Event->__captureSGForElement($relation['GalaxyClusterRelation'], $user);
|
||||
$relation['GalaxyClusterRelation'] = $this->Event->captureSGForElement($relation['GalaxyClusterRelation'], $user);
|
||||
}
|
||||
|
||||
$saveSuccess = $this->save($relation);
|
||||
|
|
Loading…
Reference in New Issue