From cbf32c478c90edb94da69ad1b675890ebcf3ca1f Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Tue, 12 Dec 2017 20:30:15 +1300 Subject: [PATCH] Re-enable ufSetup (#155) --- bulkUpload/code/BulkUploader.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bulkUpload/code/BulkUploader.php b/bulkUpload/code/BulkUploader.php index dcb8ffd..47514ee 100644 --- a/bulkUpload/code/BulkUploader.php +++ b/bulkUpload/code/BulkUploader.php @@ -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'] = [