fix: Added default comment to event blacklists, fixes #2080

pull/2230/head
iglocska 2017-05-11 09:22:20 +02:00
parent 468834b210
commit 1d3a36c7c7
1 changed files with 3 additions and 0 deletions

View File

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