chg: [event warnings] load the new behaviour and set the view variable with the contents

pull/8153/head
iglocska 2022-02-17 09:24:12 +01:00
parent 7f27b1869e
commit f8a0feb59c
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -28,6 +28,7 @@ class Event extends AppModel
'change' => 'full'),
'Trim',
'Containable',
'EventWarning'
);
public $displayField = 'id';