[BUGFIX] Remove empty brackets when configuration type is unknown
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Resources / Private / Templates / Configuration / ShowConfigurationForm.html
index 430fac1..ef00bff 100644 (file)
                                                                                        <span style="background:red; padding:1px 2px; color:#fff; font-weight:bold;">{item.highlight}</span>
                                                                                </f:if>
                                                                                <em:form.typoScriptConstants configuration="{item}" />
-                                                                               <span class="info">(<f:translate key="extConfTemplate.type.{item.type}" />)</span>
+                                                                               <f:alias map="{label: '{f:translate(key: \'extConfTemplate.type.{item.type}\')}'}">
+                                                                                       <f:if condition="{label}">
+                                                                                               <f:then>
+                                                                                                       <span class="info">({label})</span>
+                                                                                               </f:then>
+                                                                                       </f:if>
+                                                                               </f:alias>
                                                                        </div>
                                                                </f:for>
                                                                <f:form.submit value="{f:translate(key:'extConfTemplate.submitButton')}" />