mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Fixed "parent mode" default selection for "add page" panel, added CSS class for easier styling
This commit is contained in:
parent
50b4605b30
commit
6768628606
@ -63,8 +63,8 @@ class CMSPageAddController extends CMSPageEditController {
|
||||
)
|
||||
);
|
||||
$parentField->setShowSearch(true);
|
||||
|
||||
$parentModeField->setValue("child");
|
||||
$parentModeField->setValue($this->request->getVar('ParentID') ? 'child' : 'top');
|
||||
$parentModeField->addExtraClass('parent-mode');
|
||||
|
||||
// CMSMain->currentPageID() automatically sets the homepage,
|
||||
// which we need to counteract in the default selection (which should default to root, ID=0)
|
||||
|
Loading…
Reference in New Issue
Block a user