mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
60333f68ee
It doesn't make a lot of sense to limit the listing to assets/Uploads/, which is the default set through FileField->folderName. Showing all files regardless of folder makes them easier to find, users can still opt-in to filtering by folder through the TreeDropdownField.
35 lines
896 B
Markdown
35 lines
896 B
Markdown
# 3.2.0 (unreleased)
|
|
|
|
## Overview
|
|
|
|
* Minimum PHP version raised to 5.3.3
|
|
* DataObject::validate() method visibility changed to public
|
|
* UploadField "Select from files" shows files in all folders by default
|
|
|
|
## Changelog
|
|
|
|
### DataObject::validate() method visibility changed to public
|
|
|
|
The visibility of `DataObject::validate()` has been changed from `protected` to `public`.
|
|
|
|
Any existing classes that currently set this as `protected` should be changed like in
|
|
this example:
|
|
|
|
::php
|
|
class MyDataClass extends DataObject {
|
|
...
|
|
public function validate() {
|
|
...
|
|
}
|
|
...
|
|
}
|
|
|
|
### UploadField "Select from files" shows files in all folders by default
|
|
|
|
In order to list files in a single folder by default (previous default behaviour),
|
|
use `setDisplayFolderName()` with a folder path relative to `assets/`:
|
|
|
|
UploadField::create('MyField')->setDisplayFolderName('Uploads');
|
|
|
|
### Bugfixes
|