mirror of https://github.com/MISP/MISP
fix: Added default comment to event blacklists, fixes #2080
parent
468834b210
commit
1d3a36c7c7
|
@ -37,6 +37,9 @@ class EventBlacklist extends AppModel{
|
|||
if (empty($this->data['EventBlacklist']['id'])) {
|
||||
$this->data['EventBlacklist']['date_created'] = $date;
|
||||
}
|
||||
if (empty($this->data['EventBlacklist']['comment'])) {
|
||||
$this->data['EventBlacklist']['comment'] = '';
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue