mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
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:
parent
5d5c26cc16
commit
15cdb7261a
@ -27,11 +27,11 @@ class SubsitesTreeDropdownField extends TreeDropdownField {
|
|||||||
return $this->subsiteID;
|
return $this->subsiteID;
|
||||||
}
|
}
|
||||||
|
|
||||||
function gettree() {
|
function gettree(SS_HTTPRequest $request) {
|
||||||
$oldSubsiteID = Session::get('SubsiteID');
|
$oldSubsiteID = Session::get('SubsiteID');
|
||||||
Session::set('SubsiteID', $this->subsiteID);
|
Session::set('SubsiteID', $this->subsiteID);
|
||||||
|
|
||||||
$results = parent::gettree();
|
$results = parent::tree($request);
|
||||||
|
|
||||||
Session::set('SubsiteID', $oldSubsiteID);
|
Session::set('SubsiteID', $oldSubsiteID);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user