fix: [helper:formFieldMassage] Correctly check for key to avoid debug output

refacto/CRUDComponent
Sami Mokaddem 2023-03-21 09:52:28 +01:00
parent 06d9f02998
commit 16a50c08a3
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -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}}',
]);