[BUGFIX] Prevent type hinting for user functions in EM configuration
authorNicole Cordes <nicole@cordes.co>
Tue, 27 Nov 2012 02:40:13 +0000 (03:40 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 1 Dec 2012 20:54:05 +0000 (21:54 +0100)
As user functions have their own output the type adding should be
prevented.

Change-Id: Iee9bec99f746dddeb56c3de8be089011fcfa6e30
Fixes: #43321
Releases: 6.1, 6.0
Reviewed-on: http://review.typo3.org/16926
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extensionmanager/Resources/Private/Templates/Configuration/ShowConfigurationForm.html

index ef00bff..bf7676f 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 style="background:red; padding:1px 2px; color:#fff; font-weight:bold;">{item.highlight}</span>
                                                                                </f:if>
                                                                                <em:form.typoScriptConstants configuration="{item}" />
-                                                                               <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>
+                                                                               <f:if condition="{0: item.type} != {0: 'user'}">
+                                                                                       <f:then>
+                                                                                               <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>
+                                                                                       </f:then>
+                                                                               </f:if>
                                                                        </div>
                                                                </f:for>
                                                                <f:form.submit value="{f:translate(key:'extConfTemplate.submitButton')}" />
                                                                        </div>
                                                                </f:for>
                                                                <f:form.submit value="{f:translate(key:'extConfTemplate.submitButton')}" />