From 735c118910c46ad2278b3c5349d37bca455f8fa6 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 26 Jun 2020 09:38:49 -0400 Subject: [PATCH] Update ProcessProfile so that Tfa class can add hooks when needed --- wire/modules/Process/ProcessProfile/ProcessProfile.module | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wire/modules/Process/ProcessProfile/ProcessProfile.module b/wire/modules/Process/ProcessProfile/ProcessProfile.module index b27f379e..b065292d 100644 --- a/wire/modules/Process/ProcessProfile/ProcessProfile.module +++ b/wire/modules/Process/ProcessProfile/ProcessProfile.module @@ -173,6 +173,11 @@ class ProcessProfile extends Process implements ConfigurableModule, WirePageEdit } } else if($field->name === 'tfa_type') { $passRequiredInputfields[] = $inputfield; + if(!$inputfield->val()) { + // initialize manually so it can add hooks (it just does some visual/wording tweaks) + $tfa = $this->wire(new Tfa()); /** @var Tfa $tfa */ + $tfa->init(); + } } $fieldset->add($inputfield);