1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-14 10:45:54 +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) { protected function ___processItemInputfields(Pagefile $pagefile, InputfieldWrapper $inputfields, $id, WireInputData $input) {
$changed = false; $changed = false;
$inputfields->resetTrackChanges(true);
$inputfields->processInput($input);
foreach($inputfields->getAll() as $f) { foreach($inputfields->getAll() as $f) {
$f->resetTrackChanges(true); /** @var Inputfield $f */
$f->processInput($input); foreach($f->getErrors(true) as $error) {
$f->error("$this->label ($pagefile->name): $error");
}
if(!$f->isChanged() && !$pagefile->isTemp()) { if(!$f->isChanged() && !$pagefile->isTemp()) {
continue; continue;
} }