mirror of
https://github.com/processwire/processwire.git
synced 2025-08-22 14:23:05 +02:00
Update ProcessProfile so that Tfa class can add hooks when needed
This commit is contained in:
@@ -173,6 +173,11 @@ class ProcessProfile extends Process implements ConfigurableModule, WirePageEdit
|
|||||||
}
|
}
|
||||||
} else if($field->name === 'tfa_type') {
|
} else if($field->name === 'tfa_type') {
|
||||||
$passRequiredInputfields[] = $inputfield;
|
$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);
|
$fieldset->add($inputfield);
|
||||||
|
Reference in New Issue
Block a user