@@ 98-100 (lines=3) @@ | ||
95 | $staged = $staged->exclude('ClassName', $hideFromCMSTree); |
|
96 | } |
|
97 | ||
98 | if (!$showAll && DataObject::getSchema()->fieldSpec($this->owner, 'ShowInMenus')) { |
|
99 | $staged = $staged->filter('ShowInMenus', 1); |
|
100 | } |
|
101 | ||
102 | $this->owner->extend("augmentStageChildren", $staged, $showAll); |
|
103 | $this->excludeSiteTreeClassNames($staged); |
|
@@ 156-158 (lines=3) @@ | ||
153 | $children = $children->exclude('ClassName', $hideFromCMSTree); |
|
154 | } |
|
155 | ||
156 | if (!$showAll && DataObject::getSchema()->fieldSpec($this->owner, 'ShowInMenus')) { |
|
157 | $children = $children->filter('ShowInMenus', 1); |
|
158 | } |
|
159 | $this->excludeSiteTreeClassNames($children); |
|
160 | ||
161 | return $children; |