mirror of https://github.com/MISP/MISP
Set OpenIOC attribute distribution to 'Inherit' by default
parent
865c5e0448
commit
ac7b95380d
|
@ -2138,10 +2138,10 @@ class EventsController extends AppController {
|
|||
$this->Event->read(null, $id);
|
||||
$saveEvent['Event'] = $this->Event->data['Event'];
|
||||
$saveEvent['Event']['published'] = false;
|
||||
$dist = '3';
|
||||
$dist = '5';
|
||||
if (Configure::read('MISP.default_attribute_distribution') != null) {
|
||||
if (Configure::read('MISP.default_attribute_distribution') === 'event') {
|
||||
$dist = $this->Event->data['Event']['distribution'];
|
||||
$dist = '5';
|
||||
} else {
|
||||
$dist = '';
|
||||
$dist .= Configure::read('MISP.default_attribute_distribution');
|
||||
|
|
Loading…
Reference in New Issue