mirror of https://github.com/MISP/MISP
fix: If no distribution level set, don't try to check if it's set to sharing group on the attribute level
- Attribute->editAttribute()pull/2668/head
parent
7ed2e5b9c9
commit
a70b786e25
|
@ -2975,7 +2975,7 @@ class Attribute extends AppModel {
|
|||
$this->create();
|
||||
}
|
||||
$attribute['event_id'] = $eventId;
|
||||
if ($attribute['distribution'] == 4) {
|
||||
if (isset($attribute['distribution']) && $attribute['distribution'] == 4) {
|
||||
$attribute['sharing_group_id'] = $this->SharingGroup->captureSG($attribute['SharingGroup'], $user);
|
||||
}
|
||||
$fieldList = array(
|
||||
|
|
Loading…
Reference in New Issue