Merge pull request #554 from TcFxGt4AGE/patch-2

Fix empty file fields
This commit is contained in:
Daniel Hensby 2017-03-06 17:14:54 +00:00 committed by GitHub
commit ce96ca3911

View File

@ -679,7 +679,7 @@ JS
if (!empty($data[$field->Name])) { if (!empty($data[$field->Name])) {
if (in_array("EditableFileField", $field->getClassAncestry())) { if (in_array("EditableFileField", $field->getClassAncestry())) {
if (isset($_FILES[$field->Name])) { if (!empty($_FILES[$field->Name]['name'])) {
$foldername = $field->getFormField()->getFolderName(); $foldername = $field->getFormField()->getFolderName();
// create the file from post data // create the file from post data