fix: No distribution set on the server should default to inherit for object attributes

pull/2985/head
iglocska 2018-02-23 11:41:32 +01:00
parent 9d7435a462
commit a35263c305
1 changed files with 1 additions and 0 deletions

View File

@ -2674,6 +2674,7 @@ class Attribute extends AppModel {
}
public function saveAttributes($attributes) {
$defaultDistribution = 5;
if (Configure::read('MISP.default_attribute_distribution') != null) {
if (Configure::read('MISP.default_attribute_distribution') === 'event') {
$defaultDistribution = 5;