1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-26 06:24:32 +02:00

fix(core): fix broken logic for form inputs without labels #274

This commit is contained in:
Awilum
2019-11-05 00:18:11 +03:00
parent 9653862fd6
commit 6409577a3b

View File

@@ -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 = '';