BUGFIX: TreeDropdownField::gettree() not exist, we should call TreeDropdownField::tree() wherever it is invoked, the bug is addressed by open ticket #4970

This commit is contained in:
Normann Lou 2010-02-01 23:41:39 +00:00
parent 5d5c26cc16
commit 15cdb7261a

View File

@ -27,11 +27,11 @@ class SubsitesTreeDropdownField extends TreeDropdownField {
return $this->subsiteID;
}
function gettree() {
function gettree(SS_HTTPRequest $request) {
$oldSubsiteID = Session::get('SubsiteID');
Session::set('SubsiteID', $this->subsiteID);
$results = parent::gettree();
$results = parent::tree($request);
Session::set('SubsiteID', $oldSubsiteID);