This commit is contained in:
Tony Air 2024-01-15 15:49:26 +13:00 committed by GitHub
commit f15ac937a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -249,7 +249,15 @@ class BulkUploader implements GridField_HTMLProvider, GridField_URLHandler
//UploadField setup
foreach ($this->ufSetup as $fn => $param) {
$uploadField->{$fn}($param);
$funcs = explode('.', $fn);
$lastCall = array_pop($funcs);
$res = $uploadField;
foreach ($funcs as $call) {
$res = $res->{$call}();
}
$res->{$lastCall}($param);
}
$schema['data']['createFileEndpoint'] = [