mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 18:24:57 +02:00
Fix issue processwire/processwire-issues#1661
This commit is contained in:
@@ -1434,6 +1434,12 @@ class InputfieldFile extends Inputfield implements InputfieldItemList, Inputfiel
|
||||
foreach($inputfields->getAll() as $f) {
|
||||
/** @var Inputfield $f */
|
||||
|
||||
if($f->get('requiredAttr') || $f->attr('required')) {
|
||||
// required attribute not possible for dynamically changed inputs
|
||||
$f->set('requiredAttr', 0);
|
||||
$f->removeAttr('required');
|
||||
}
|
||||
|
||||
if(wireInstanceOf($f, 'InputfieldCKEditor')) {
|
||||
/** @var InputfieldCKEditor $f */
|
||||
$ckeField = $f->hasField;
|
||||
|
Reference in New Issue
Block a user