From 8de154d92cc9b044824205216683c0a187d17e5b Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Thu, 16 Nov 2017 14:43:32 +1300 Subject: [PATCH] BUG Restore missing '(Choose Page)' text in link insert modal --- code/Forms/InternalLinkFormFactory.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/Forms/InternalLinkFormFactory.php b/code/Forms/InternalLinkFormFactory.php index 2338a578..ba97c280 100644 --- a/code/Forms/InternalLinkFormFactory.php +++ b/code/Forms/InternalLinkFormFactory.php @@ -31,7 +31,9 @@ class InternalLinkFormFactory extends LinkFormFactory SiteTree::class, 'ID', 'TreeTitle' - )->setTitleField('MenuTitle'), + ) + ->setTitleField('MenuTitle') + ->setHasEmptyDefault(true), TextField::create( 'Description', _t(__CLASS__.'.LINKDESCR', 'Link description')