Skip to content

Commit 12c0cfd

Browse files
authored
Merge pull request z-song#4265 from liyu001989/master
fix hasFile
2 parents fa87414 + d1a42a5 commit 12c0cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Form/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ public function title(): string
442442
public function hasFile(): bool
443443
{
444444
foreach ($this->fields() as $field) {
445-
if ($field instanceof Field\File) {
445+
if ($field instanceof Field\File || $field instanceof Field\MultipleFile) {
446446
return true;
447447
}
448448
}

0 commit comments

Comments
 (0)