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:
Tom Rix 2010-03-04 21:16:04 +00:00 committed by Sam Minnee
parent d5dba5f3fc
commit 81fd7f09d1

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