mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 10:45:54 +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) {
|
foreach($inputfields->getAll() as $f) {
|
||||||
/** @var Inputfield $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')) {
|
if(wireInstanceOf($f, 'InputfieldCKEditor')) {
|
||||||
/** @var InputfieldCKEditor $f */
|
/** @var InputfieldCKEditor $f */
|
||||||
$ckeField = $f->hasField;
|
$ckeField = $f->hasField;
|
||||||
|
Reference in New Issue
Block a user