mirror of https://github.com/MISP/MISP
fix: [internal] if no attribute distribution is found in the event edits, set the default instead of defaulting to 0
parent
430ddcd79c
commit
665b6ccbae
|
@ -3628,7 +3628,12 @@ class Attribute extends AppModel
|
|||
));
|
||||
return 'Invalid sharing group choice.';
|
||||
}
|
||||
}
|
||||
} else if (!isset($attribute['distribution'])) {
|
||||
$attribute['distribution'] = Configure::read('MISP.default_attribute_distribution');
|
||||
if ($attribute['distribution'] == 'event') {
|
||||
$attribute['distribution'] = 5;
|
||||
}
|
||||
}
|
||||
$fieldList = array(
|
||||
'event_id',
|
||||
'category',
|
||||
|
|
Loading…
Reference in New Issue