mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 10:45:54 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user