mirror of https://github.com/MISP/MISP
chg: [event warnings] load the new behaviour and set the view variable with the contents
parent
7f27b1869e
commit
f8a0feb59c
|
@ -1602,6 +1602,7 @@ class EventsController extends AppController
|
|||
$this->set('title_for_layout', __('Event #%s', $event['Event']['id']));
|
||||
$this->set('attribute_count', $attributeCount);
|
||||
$this->set('object_count', $objectCount);
|
||||
$this->set('warnings', $this->Event->generateWarnings($event));
|
||||
$this->__eventViewCommon($user);
|
||||
}
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ class Event extends AppModel
|
|||
'change' => 'full'),
|
||||
'Trim',
|
||||
'Containable',
|
||||
'EventWarning'
|
||||
);
|
||||
|
||||
public $displayField = 'id';
|
||||
|
|
Loading…
Reference in New Issue