Merge branch '5.13' into 5

This commit is contained in:
Guy Sartorelli 2022-06-02 10:43:54 +12:00
commit 853fb646dc

View File

@ -212,7 +212,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__);