mirror of https://github.com/MISP/MISP
Set attribute distribution to Inherit if it is not set.
parent
7a20704f36
commit
113d9cd82d
|
@ -523,6 +523,7 @@ class Attribute extends AppModel {
|
|||
// always return true, otherwise the object cannot be saved
|
||||
|
||||
if (!isset($this->data['Attribute']['distribution']) || $this->data['Attribute']['distribution'] != 4) $this->data['Attribute']['sharing_group_id'] = 0;
|
||||
if (!isset($this->data['Attribute']['distribution'])) $this->data['Attribute']['distribution'] = 5;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue