Commit 0a9c56f0 authored by Primsi's avatar Primsi Committed by Primsi

Issue #3083640 by Primsi, Berdir: Check before adding the result of createFile to the entity list

parent 691a3272
...@@ -226,7 +226,9 @@ class DropzoneJsEbWidget extends WidgetBase { ...@@ -226,7 +226,9 @@ class DropzoneJsEbWidget extends WidgetBase {
$this->currentUser, $this->currentUser,
$additional_validators $additional_validators
); );
$files[] = $entity; if ($entity) {
$files[] = $entity;
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment