Update code/Control/UserDefinedFormController.php

This commit is contained in:
Michal Kleiner 2023-05-26 03:58:35 +12:00 committed by Guy Sartorelli
parent 569801005a
commit 3764afd628
No known key found for this signature in database
GPG Key ID: F313E3B9504D496A
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ JS
if (!$field->getFolderExists()) {
$field->createProtectedFolder();
}
$stage = $this->config()->get('file_upload_stage');
$file = Versioned::withVersionedMode(function () use ($field, $form, $stage) {
Versioned::set_stage($stage);