Merge branch '5.12' into 5.13

This commit is contained in:
Guy Sartorelli 2022-06-02 10:43:42 +12:00
commit 5e226f00dd

View File

@ -201,7 +201,7 @@ class EditableFileField extends EditableFormField
$field = FileField::create($this->Name, $this->Title ?: false)
->setFieldHolderTemplate(EditableFormField::class . '_holder')
->setTemplate(__CLASS__)
->setValidator(Injector::inst()->get(Upload_Validator::class . '.userforms'));
->setValidator(Injector::inst()->get(Upload_Validator::class . '.userforms', false));
$field->setFieldHolderTemplate(EditableFormField::class . '_holder')
->setTemplate(__CLASS__);