From 65818313968674570e53d7d87c31b69c61700144 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 13 Jun 2012 16:11:14 +0200 Subject: [PATCH] MINOR Disable parent node search in CMSPageAddController The search field can't handle HTML returned by SiteTree.TreeTitle, see #7455 for proposed fix --- code/controllers/CMSPageAddController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/controllers/CMSPageAddController.php b/code/controllers/CMSPageAddController.php index f727edcb..502c0dce 100644 --- a/code/controllers/CMSPageAddController.php +++ b/code/controllers/CMSPageAddController.php @@ -64,7 +64,9 @@ class CMSPageAddController extends CMSPageEditController { 'Page' ) ); - $parentField->setShowSearch(true); + // TODO Re-enable search once it allows for HTML title display, + // see http://open.silverstripe.org/ticket/7455 + // $parentField->setShowSearch(true); $parentModeField->setValue($this->request->getVar('ParentID') ? 'child' : 'top'); $parentModeField->addExtraClass('parent-mode');