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"
);
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";'));