Set OpenIOC attribute distribution to 'Inherit' by default

pull/2200/head
Richard van den Berg 2017-05-18 17:10:44 +02:00
parent 865c5e0448
commit ac7b95380d
1 changed files with 2 additions and 2 deletions

View File

@ -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');