diff --git a/forms/TreeDropdownField.php b/forms/TreeDropdownField.php index 3d7874e8f..f32081879 100644 --- a/forms/TreeDropdownField.php +++ b/forms/TreeDropdownField.php @@ -229,8 +229,7 @@ class TreeDropdownField extends FormField { ? (int)$request->latestparam('ID') : (int)$request->requestVar('ID'); - $forceFullTree = $request->requestVar('forceFullTree')?$request->requestVar('forceFullTree'):false; - if($ID && !$forceFullTree) { + if($ID && !$request->requestVar('forceFullTree')) { $obj = DataObject::get_by_id($this->sourceObject, $ID); $isSubTree = true; if(!$obj) {