mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
BUGFIX make the dropdown selector work(!!) (from r89576)
This commit is contained in:
parent
9391485eef
commit
f8ca454de7
@ -39,9 +39,8 @@ class RelatedPageLink extends DataObject {
|
||||
"MenuTitle"
|
||||
);
|
||||
|
||||
if(Controller::curr()->getRequest()) {
|
||||
$subsiteID = Controller::curr()->getRequest()->getVar('TreeDropdownField_ComplexTableField_Popup_AddForm_RelatedPageID_SubsiteID');
|
||||
$pageSelectionField->setSubsiteID($subsiteID);
|
||||
if (isset($_GET['TreeDropdownField_ComplexTableField_Popup_AddForm_RelatedPageID_SubsiteID'])) {
|
||||
$pageSelectionField->setSubsiteID($_GET['TreeDropdownField_ComplexTableField_Popup_AddForm_RelatedPageID_SubsiteID']);
|
||||
}
|
||||
|
||||
$pageSelectionField->setFilterFunction(create_function('$item', 'return $item->ClassName != "VirtualPage";'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user