BUGFIX Fixed field addition bug in SubsitesVirtualPage

This commit is contained in:
Ingo Schommer 2008-12-03 22:33:01 +00:00
parent 83fb26cc3e
commit 3315786c66

View File

@ -10,7 +10,8 @@ class SubsitesVirtualPage extends VirtualPage {
$subsites->push(new ArrayData(array('Title' => 'Main site', 'ID' => 0))); $subsites->push(new ArrayData(array('Title' => 'Main site', 'ID' => 0)));
} }
if($subsites->Count()) $subsiteSelectionField = new DropdownField( if($subsites->Count()) {
$subsiteSelectionField = new DropdownField(
"CopyContentFromID_SubsiteID", "CopyContentFromID_SubsiteID",
"Subsite", "Subsite",
$subsites->toDropdownMap('ID', 'Title'), $subsites->toDropdownMap('ID', 'Title'),
@ -21,6 +22,7 @@ class SubsitesVirtualPage extends VirtualPage {
$subsiteSelectionField, $subsiteSelectionField,
'CopyContentFromID' 'CopyContentFromID'
); );
}
// Setup the linking to the original page. // Setup the linking to the original page.
$pageSelectionField = new SubsitesTreeDropdownField( $pageSelectionField = new SubsitesTreeDropdownField(