API CHANGE TreeDropdownField no longer requires your object to have the Hierarchy extension (from r100512)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105589 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-25 04:13:05 +00:00
parent 593448929a
commit 5a38c65156

View File

@ -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);
}