From 082ac10a8abe790e7babcacf0f44e1122ac1c155 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 31 May 2018 10:47:15 +0200 Subject: [PATCH] Improve extensibility of `DevtoolsProjectPipEntryAddForm` for plugins See #2545 --- .../lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php index 9b1805d196..e3e994be90 100644 --- a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php @@ -5,6 +5,7 @@ use wcf\data\devtools\project\DevtoolsProject; use wcf\form\AbstractForm; use wcf\form\AbstractFormBuilderForm; use wcf\system\devtools\pip\DevtoolsPip; +use wcf\system\event\EventHandler; use wcf\system\exception\IllegalLinkException; use wcf\system\form\builder\container\FormContainer; use wcf\system\request\LinkHandler; @@ -58,7 +59,7 @@ class DevtoolsProjectPipEntryAddForm extends AbstractFormBuilderForm { * devtools pip object for the requested pip * @var DevtoolsPip */ - protected $pipObject; + public $pipObject; /** * @inheritDoc @@ -112,6 +113,8 @@ class DevtoolsProjectPipEntryAddForm extends AbstractFormBuilderForm { ); $this->pipObject->getPip()->addFormFields($this->form); + + EventHandler::getInstance()->fireAction($this, 'addPipFormFields'); } /** -- 2.20.1