Skip to content

Commit

Permalink
Merge pull request #24 from exceedone/hotfixfeature/issue_1410
Browse files Browse the repository at this point in the history
Issue 1410 fix update column image using api
  • Loading branch information
KajitoriAdmin authored May 7, 2024
2 parents ee2f53b + 28ef457 commit cb241c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Form/Field/MultipleFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ public function getValidator(array $input)
}

$attributes[$this->column] = $this->label;

list($rules, $input) = $this->hydrateFiles(Arr::get($input, $this->column) ?? []);
$fileNames = Arr::get($input, $this->column);
list($rules, $input) = $this->hydrateFiles($fileNames ? (is_array($fileNames) ? $fileNames : $fileNames->toArray()) : []);

return \validator($input, $rules, $this->getValidationMessages(), $attributes);
}
Expand Down

0 comments on commit cb241c9

Please sign in to comment.