mirror of https://github.com/MISP/MISP
fix: [sharinggroup:capture] Re-use the ID of an existing SG if it exists
instead of the defaulted value 0pull/7469/head
parent
c2a85e7f7e
commit
c9acae11f0
|
@ -618,6 +618,7 @@ class SharingGroup extends AppModel
|
||||||
if ($existingCaptureResult !== true) {
|
if ($existingCaptureResult !== true) {
|
||||||
return $existingCaptureResult;
|
return $existingCaptureResult;
|
||||||
}
|
}
|
||||||
|
$sg_id = $existingSG['SharingGroup']['id'];
|
||||||
$forceUpdate = true;
|
$forceUpdate = true;
|
||||||
}
|
}
|
||||||
unset($sg['Organisation']);
|
unset($sg['Organisation']);
|
||||||
|
|
Loading…
Reference in New Issue