fix: [sharinggroup:capture] Re-use the ID of an existing SG if it exists

instead of the defaulted value 0
pull/7469/head
mokaddem 2021-05-30 11:06:51 +02:00
parent c2a85e7f7e
commit c9acae11f0
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 0 deletions

View File

@ -618,6 +618,7 @@ class SharingGroup extends AppModel
if ($existingCaptureResult !== true) {
return $existingCaptureResult;
}
$sg_id = $existingSG['SharingGroup']['id'];
$forceUpdate = true;
}
unset($sg['Organisation']);