summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmsosso2017-02-07 07:31:07 (GMT)
committerMark Carver2017-02-07 07:31:07 (GMT)
commit0eb4e696e22c56d37de31cb6b07378b04de3c835 (patch)
tree5f38bcfc670552cf06530163839d49fc397b3acd
parent5c1a0cf4a89a267a83cb6781fd9d758a67267cea (diff)
Issue #2831650 by jmsosso, somersoft, TrevorBradley: Bootstrap 3.1 upgrade somehow broke my custom form element
-rw-r--r--src/Plugin/Preprocess/FormElement.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Plugin/Preprocess/FormElement.php b/src/Plugin/Preprocess/FormElement.php
index 0d1006d..a61262b 100644
--- a/src/Plugin/Preprocess/FormElement.php
+++ b/src/Plugin/Preprocess/FormElement.php
@@ -47,7 +47,7 @@ class FormElement extends PreprocessBase implements PreprocessInterface {
$label = Element::create($variables['label']);
$children = &$label->getProperty('children', '');
$children .= $variables['children'];
- if ($label->getProperty('title')) {
+ if ($label->getProperty('title_display') != 'none') {
unset($variables['children']);
}