mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge branch '5.13' into 5
This commit is contained in:
commit
853fb646dc
@ -212,7 +212,7 @@ class EditableFileField extends EditableFormField
|
|||||||
$field = FileField::create($this->Name, $this->Title ?: false)
|
$field = FileField::create($this->Name, $this->Title ?: false)
|
||||||
->setFieldHolderTemplate(EditableFormField::class . '_holder')
|
->setFieldHolderTemplate(EditableFormField::class . '_holder')
|
||||||
->setTemplate(__CLASS__)
|
->setTemplate(__CLASS__)
|
||||||
->setValidator(Injector::inst()->get(Upload_Validator::class . '.userforms'));
|
->setValidator(Injector::inst()->get(Upload_Validator::class . '.userforms', false));
|
||||||
|
|
||||||
$field->setFieldHolderTemplate(EditableFormField::class . '_holder')
|
$field->setFieldHolderTemplate(EditableFormField::class . '_holder')
|
||||||
->setTemplate(__CLASS__);
|
->setTemplate(__CLASS__);
|
||||||
|
Loading…
Reference in New Issue
Block a user