fix: [helper:formFieldMassage] Correctly check for key to avoid debug output
parent
06d9f02998
commit
16a50c08a3
|
@ -8,7 +8,7 @@ class FormFieldMassageHelper extends Helper
|
|||
{
|
||||
public function prepareFormElement(\Cake\View\Helper\FormHelper $form, array $controlParams, array $fieldData): string
|
||||
{
|
||||
if ($fieldData['tooltip']) {
|
||||
if (!empty($fieldData['tooltip'])) {
|
||||
$form->setTemplates([
|
||||
'label' => '{{text}}{{tooltip}}',
|
||||
]);
|
||||
|
|
Loading…
Reference in New Issue