1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 01:34:31 +02:00
This commit is contained in:
Ryan Cramer
2020-07-23 15:32:26 -04:00
parent bea09627b2
commit fe32580027

View File

@@ -1008,10 +1008,14 @@ class InputfieldFile extends Inputfield implements InputfieldItemList, Inputfiel
protected function ___processItemInputfields(Pagefile $pagefile, InputfieldWrapper $inputfields, $id, WireInputData $input) {
$changed = false;
$inputfields->resetTrackChanges(true);
$inputfields->processInput($input);
foreach($inputfields->getAll() as $f) {
$f->resetTrackChanges(true);
$f->processInput($input);
/** @var Inputfield $f */
foreach($f->getErrors(true) as $error) {
$f->error("$this->label ($pagefile->name): $error");
}
if(!$f->isChanged() && !$pagefile->isTemp()) {
continue;
}