mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 01:34:31 +02:00
Fix issue processwire/processwire-issues#1212
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user