mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
Fixed bug: Page class wasn't shown in add-page dropdown
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@48169 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
35adb02921
commit
b00e1ca72e
@ -242,7 +242,7 @@ JS;
|
||||
$classes = ClassInfo::getValidSubClasses();
|
||||
array_shift($classes);
|
||||
$result = new DataObjectSet();
|
||||
$kill_ancestors[] = null;
|
||||
$kill_ancestors = array();
|
||||
|
||||
// figure out if there are any classes we don't want to appear
|
||||
foreach($classes as $class) {
|
||||
@ -263,6 +263,7 @@ JS;
|
||||
unset($classes[$idx]);
|
||||
}
|
||||
}
|
||||
|
||||
foreach($classes as $class) {
|
||||
$instance = singleton($class);
|
||||
if($instance instanceof HiddenClass) continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user