From 15cdb7261a6055634250195e4fe4586f4d7d597a Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Mon, 1 Feb 2010 23:41:39 +0000 Subject: [PATCH] BUGFIX: TreeDropdownField::gettree() not exist, we should call TreeDropdownField::tree() wherever it is invoked, the bug is addressed by open ticket #4970 --- code/SubsitesTreeDropdownField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/SubsitesTreeDropdownField.php b/code/SubsitesTreeDropdownField.php index 9cb484b..ad0763f 100644 --- a/code/SubsitesTreeDropdownField.php +++ b/code/SubsitesTreeDropdownField.php @@ -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);