mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1067 from halkyon/shorthand_ternary_op
Remove unncessary variable from TreeDropdownField
This commit is contained in:
commit
2140a621fb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user