From 6c8d35f18df7e0935379c8e6fd3fcc2f74a239eb Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 20 Aug 2021 10:52:26 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1426 --- wire/modules/Inputfield/InputfieldFile/InputfieldFile.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wire/modules/Inputfield/InputfieldFile/InputfieldFile.module b/wire/modules/Inputfield/InputfieldFile/InputfieldFile.module index 4240b830..9a16dbe6 100644 --- a/wire/modules/Inputfield/InputfieldFile/InputfieldFile.module +++ b/wire/modules/Inputfield/InputfieldFile/InputfieldFile.module @@ -1064,7 +1064,9 @@ class InputfieldFile extends Inputfield implements InputfieldItemList, Inputfiel foreach($inputfields->getAll() as $f) { /** @var Inputfield $f */ foreach($f->getErrors(true) as $error) { - $f->error("$this->label ($pagefile->name): $error"); + $msg = "$this->label ($pagefile->name): $error"; + $this->error($msg); + $f->error($msg); } if(!$f->isChanged() && !$pagefile->isTemp()) { continue;