Skip to content

Commit

Permalink
Merge branch 'bugfix/1882' into support/2.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jul 21, 2020
2 parents 2947d6f + f70a847 commit 21cb43b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/fields/filefield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ public function isValid() {

private function isValidValue($value) {
// If the field is required it can't be empty
return (count($this->uploadData) > 0);
$key = 'formcreator_field_' . $this->question->getID();
return (count($this->uploads["_$key"]) > 0);
}

public static function getName() {
Expand Down

0 comments on commit 21cb43b

Please sign in to comment.