BUGFIX make the dropdown selector work(!!) (from r89576)

This commit is contained in:
Tom Rix 2010-03-01 21:34:27 +00:00
parent 9391485eef
commit f8ca454de7

View File

@ -39,9 +39,8 @@ class RelatedPageLink extends DataObject {
"MenuTitle" "MenuTitle"
); );
if(Controller::curr()->getRequest()) { if (isset($_GET['TreeDropdownField_ComplexTableField_Popup_AddForm_RelatedPageID_SubsiteID'])) {
$subsiteID = Controller::curr()->getRequest()->getVar('TreeDropdownField_ComplexTableField_Popup_AddForm_RelatedPageID_SubsiteID'); $pageSelectionField->setSubsiteID($_GET['TreeDropdownField_ComplexTableField_Popup_AddForm_RelatedPageID_SubsiteID']);
$pageSelectionField->setSubsiteID($subsiteID);
} }
$pageSelectionField->setFilterFunction(create_function('$item', 'return $item->ClassName != "VirtualPage";')); $pageSelectionField->setFilterFunction(create_function('$item', 'return $item->ClassName != "VirtualPage";'));