[BUGFIX] Avoid empty labels in EM configuration 65/28665/2
authorFrancois Suter <francois@typo3.org>
Sun, 23 Mar 2014 11:55:56 +0000 (12:55 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 23 Mar 2014 14:02:04 +0000 (15:02 +0100)
Check if a given configuration option in the EM really has both
a headline and a text, before writing out an empty label.

Resolves: #57205
Releases: 6.2
Change-Id: I66c405f255b9bd6ba9b130088732984157cf4152
Reviewed-on: https://review.typo3.org/28665
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extensionmanager/Resources/Private/Templates/Configuration/ShowConfigurationForm.html

index 29e2a4c..35f2a62 100644 (file)
@@ -43,7 +43,9 @@
                                                                        <f:for each="{subcategory.items}" as="item">
                                                                                <div class="group">
                                                                                        <h4>{item.labelHeadline} <span class="info">[{category.name}.{item.name}]</span></h4>
-                                                                                       <label for="{item.name}">{item.labelText}</label>
+                                                                                       <f:if condition="{item.labelText}">
+                                                                                               <label for="{item.name}">{item.labelText}</label>
+                                                                                       </f:if>
                                                                                        <f:if condition="{item.highlight}">
                                                                                                <span style="background:red; padding:1px 2px; color:#fff; font-weight:bold;">{item.highlight}</span>
                                                                                        </f:if>