Re-enable ufSetup (#155)

This commit is contained in:
Ralph Slooten 2017-12-12 20:30:15 +13:00 committed by Thierry François
parent fc86512ec9
commit cbf32c478c
1 changed files with 3 additions and 1 deletions

View File

@ -333,19 +333,21 @@ class BulkUploader implements GridField_HTMLProvider, GridField_URLHandler
foreach ($this->ufConfig as $key => $val) {
$uploadField->setConfig($key, $val);
}
*/
//UploadField setup
foreach ($this->ufSetup as $fn => $param) {
$uploadField->{$fn}($param);
}
/*
//UploadField Validator setup
foreach ($this->ufValidatorSetup as $fn => $param) {
$uploadField->getValidator()->{$fn}($param);
}
*/
$uploadLink = $gridField->Link('bulkupload/upload');
$schema['data']['createFileEndpoint'] = [