Update code/Control/UserDefinedFormController.php
This commit is contained in:
parent
569801005a
commit
3764afd628
|
@ -314,7 +314,7 @@ JS
|
||||||
if (!$field->getFolderExists()) {
|
if (!$field->getFolderExists()) {
|
||||||
$field->createProtectedFolder();
|
$field->createProtectedFolder();
|
||||||
}
|
}
|
||||||
|
|
||||||
$stage = $this->config()->get('file_upload_stage');
|
$stage = $this->config()->get('file_upload_stage');
|
||||||
$file = Versioned::withVersionedMode(function () use ($field, $form, $stage) {
|
$file = Versioned::withVersionedMode(function () use ($field, $form, $stage) {
|
||||||
Versioned::set_stage($stage);
|
Versioned::set_stage($stage);
|
||||||
|
|
Loading…
Reference in New Issue