mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX: Don't let SubsitesVirtualPages link to subclasses of virtual page (from r100004)
This commit is contained in:
parent
2eddac12f0
commit
f5bbbf979e
@ -35,7 +35,7 @@ class SubsitesVirtualPage extends VirtualPage {
|
||||
"MenuTitle"
|
||||
);
|
||||
|
||||
$pageSelectionField->setFilterFunction(create_function('$item', 'return $item->ClassName != "VirtualPage";'));
|
||||
$pageSelectionField->setFilterFunction(create_function('$item', 'return !($item instanceof VirtualPage);'));
|
||||
|
||||
if(Controller::curr()->getRequest()) {
|
||||
$subsiteID = Controller::curr()->getRequest()->getVar('CopyContentFromID_SubsiteID');
|
||||
|
Loading…
Reference in New Issue
Block a user