Remove unncessary variable from TreeDropdownField

This commit is contained in:
Sean Harvey 2012-12-21 13:17:01 +13:00
parent aa3b358469
commit 68eb367d27

View File

@ -229,8 +229,7 @@ class TreeDropdownField extends FormField {
? (int)$request->latestparam('ID') ? (int)$request->latestparam('ID')
: (int)$request->requestVar('ID'); : (int)$request->requestVar('ID');
$forceFullTree = $request->requestVar('forceFullTree')?$request->requestVar('forceFullTree'):false; if($ID && !$request->requestVar('forceFullTree')) {
if($ID && !$forceFullTree) {
$obj = DataObject::get_by_id($this->sourceObject, $ID); $obj = DataObject::get_by_id($this->sourceObject, $ID);
$isSubTree = true; $isSubTree = true;
if(!$obj) { if(!$obj) {