From 3364f5c52bc7a5059412a946fbe193235196001b Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Wed, 26 Jul 2017 18:15:15 +1200 Subject: [PATCH] API Use setTitleField to use MenuTitle for selecting internal links --- code/Forms/InternalLinkFormFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Forms/InternalLinkFormFactory.php b/code/Forms/InternalLinkFormFactory.php index 32a3ea56..a89e22ee 100644 --- a/code/Forms/InternalLinkFormFactory.php +++ b/code/Forms/InternalLinkFormFactory.php @@ -23,7 +23,7 @@ class InternalLinkFormFactory extends LinkFormFactory SiteTree::class, 'ID', 'TreeTitle' - ), + )->setTitleField('MenuTitle'), TextField::create( 'Description', _t(__CLASS__.'.LINKDESCR', 'Link description')