fix: [sharinggroup:captureOrg/captureServer] Use the ID of the existing sharing group

pull/7469/head
mokaddem 2021-05-30 11:05:07 +02:00
parent 845ba86ba5
commit c2a85e7f7e
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -838,7 +838,7 @@ class SharingGroup extends AppModel
$temp = $this->SharingGroupOrg->find('first', array(
'recursive' => -1,
'conditions' => array(
'sharing_group_id' => $existingSG['SharingGroup']['id'],
'sharing_group_id' => $sg_id,
'org_id' => $sg['SharingGroupOrg'][$k]['org_id']
),
));
@ -891,7 +891,7 @@ class SharingGroup extends AppModel
$temp = $this->SharingGroupServer->find('first', array(
'recursive' => -1,
'conditions' => array(
'sharing_group_id' => $existingSG['SharingGroup']['id'],
'sharing_group_id' => $sg_id,
'server_id' => $sg['SharingGroupServer'][$k]['server_id']
),
));