From 6409577a3bea6ead61e4ff0f4e58bdc616607697 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 5 Nov 2019 00:18:11 +0300 Subject: [PATCH] fix(core): fix broken logic for form inputs without labels #274 --- flextype/core/Forms.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flextype/core/Forms.php b/flextype/core/Forms.php index 6f6235f1..334b5613 100644 --- a/flextype/core/Forms.php +++ b/flextype/core/Forms.php @@ -117,8 +117,8 @@ class Forms // Create attribute value $property['value'] = Arr::keyExists($property, 'value') ? $property['value'] : ''; - // Create attribute value - $property['label'] = Arr::keyExists($property, 'label') ? $property['label'] : true; + // Create title label + $property['title'] = Arr::keyExists($property, 'title') ? $property['title'] : false; // Set element name $element_name = $this->getElementName($element); @@ -170,7 +170,7 @@ class Forms break; } - if ($property['label'] === true) { + if ($property['title']) { $form_label = Form::label($element, __($property['title'])); } else { $form_label = '';