mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE TreeDropdownField no longer requires your object to have the Hierarchy extension
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100512 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d5dba5f3fc
commit
81fd7f09d1
@ -44,12 +44,6 @@ class TreeDropdownField extends FormField {
|
||||
$this->labelField = $labelField;
|
||||
$this->showSearch = $showSearch;
|
||||
|
||||
if(!Object::has_extension($this->sourceObject, 'Hierarchy')) {
|
||||
throw new Exception (
|
||||
"TreeDropdownField: the source class '$this->sourceObject' must have the Hierarchy extension applied"
|
||||
);
|
||||
}
|
||||
|
||||
parent::__construct($name, $title);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user