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

View File

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