From 12907271ffd230d787c597fb0413262a7f2d49c2 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Tue, 25 Sep 2018 16:48:49 +0200 Subject: [PATCH] NEW Add update extension hooks for LinkFormFactory subclasses --- code/Forms/InternalLinkFormFactory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/Forms/InternalLinkFormFactory.php b/code/Forms/InternalLinkFormFactory.php index ba97c280..045c695a 100644 --- a/code/Forms/InternalLinkFormFactory.php +++ b/code/Forms/InternalLinkFormFactory.php @@ -48,6 +48,8 @@ class InternalLinkFormFactory extends LinkFormFactory $fields->insertAfter('PageID', TextField::create('Text', _t(__CLASS__.'.LINKTEXT', 'Link text'))); } + $this->extend('updateFormFields', $fields, $controller, $name, $context); + return $fields; }