Skip to content

Commit 8ffc18a

Browse files
committed
[Core] Fix: Submit an empty file input throws error.
Empty file input fields are now ignored by FileCollection::bindValues()
1 parent e905e9f commit 8ffc18a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

module/Core/src/Core/Form/FileCollection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public function bindValues(array $values = array())
5757
$collection = $this->getEntityCollection();
5858

5959
foreach ($values as $name => $value) {
60+
if (UPLOAD_ERR_OK != $value['error']) {
61+
continue;
62+
}
6063
$element = $this->get($name);
6164

6265
$entity = $hydrator->hydrate($value, $this->getEntity());

0 commit comments

Comments
 (0)