fix: Removed the requirement for a comment from the import modules

- if the comment field is set don't override it
pull/2731/head
iglocska 2017-12-06 08:49:48 +01:00
parent 77acb7c666
commit 9e32f72f6c
1 changed files with 1 additions and 1 deletions

View File

@ -4292,7 +4292,7 @@ class EventsController extends AppController {
if (isset($result['error'])) $this->Session->setFlash($result['error']);
if (!is_array($result)) throw new Exception($result);
$resultArray = $this->Event->handleModuleResult($result, $eventId);
if (isset($result['comment']) && $result['comment'] != "") {
if (isset($result['comment'])) {
$importComment = $result['comment'];
}
else {