mirror of https://github.com/MISP/MISP
chg: [Log:beforeSave] Fallback to `SYSTEM` Org if field empty
parent
3070dab744
commit
f2f1fc2170
|
@ -113,7 +113,7 @@ class Log extends AppModel
|
|||
if (!isset($this->data['Log']['created'])) {
|
||||
$this->data['Log']['created'] = date('Y-m-d H:i:s');
|
||||
}
|
||||
if (!isset($this->data['Log']['org'])) {
|
||||
if (!isset($this->data['Log']['org']) || empty($this->data['Log']['org'])) {
|
||||
$this->data['Log']['org'] = 'SYSTEM';
|
||||
}
|
||||
$truncate_fields = array('title', 'change', 'description');
|
||||
|
|
Loading…
Reference in New Issue