mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX: replacing calls to deprecated Upload functions - using validator instead (related to r100057) (from r100496)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@105640 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5577dab2c5
commit
8cea5136d2
@ -45,7 +45,7 @@ class GroupImportForm extends Form {
|
||||
)
|
||||
)
|
||||
);
|
||||
$fileField->setAllowedExtensions(array('csv'));
|
||||
$fileField->getValidator()->setAllowedExtensions(array('csv'));
|
||||
}
|
||||
|
||||
if(!$actions) $actions = new FieldSet(
|
||||
|
@ -44,7 +44,7 @@ class MemberImportForm extends Form {
|
||||
)
|
||||
)
|
||||
);
|
||||
$fileField->setAllowedExtensions(array('csv'));
|
||||
$fileField->getValidator()->setAllowedExtensions(array('csv'));
|
||||
}
|
||||
|
||||
if(!$actions) $actions = new FieldSet(
|
||||
|
Loading…
Reference in New Issue
Block a user