mirror of https://github.com/MISP/MISP
fix: [sharinggroup:captureOrg/captureServer] Use the ID of the existing sharing group
parent
845ba86ba5
commit
c2a85e7f7e
|
@ -838,7 +838,7 @@ class SharingGroup extends AppModel
|
||||||
$temp = $this->SharingGroupOrg->find('first', array(
|
$temp = $this->SharingGroupOrg->find('first', array(
|
||||||
'recursive' => -1,
|
'recursive' => -1,
|
||||||
'conditions' => array(
|
'conditions' => array(
|
||||||
'sharing_group_id' => $existingSG['SharingGroup']['id'],
|
'sharing_group_id' => $sg_id,
|
||||||
'org_id' => $sg['SharingGroupOrg'][$k]['org_id']
|
'org_id' => $sg['SharingGroupOrg'][$k]['org_id']
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
@ -891,7 +891,7 @@ class SharingGroup extends AppModel
|
||||||
$temp = $this->SharingGroupServer->find('first', array(
|
$temp = $this->SharingGroupServer->find('first', array(
|
||||||
'recursive' => -1,
|
'recursive' => -1,
|
||||||
'conditions' => array(
|
'conditions' => array(
|
||||||
'sharing_group_id' => $existingSG['SharingGroup']['id'],
|
'sharing_group_id' => $sg_id,
|
||||||
'server_id' => $sg['SharingGroupServer'][$k]['server_id']
|
'server_id' => $sg['SharingGroupServer'][$k]['server_id']
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in New Issue