[FOLLOWUP][BUGFIX] Render PDFs and MP3s in FSC. 37/44737/2
authorSteffen Müller <typo3@t3node.com>
Mon, 16 Nov 2015 16:12:47 +0000 (17:12 +0100)
committerSteffen Müller <typo3@t3node.com>
Thu, 19 Nov 2015 14:50:41 +0000 (15:50 +0100)
Move default case to bottom in switch/case VH

Resolves: #71502
Resolves: #71474
Releases: master
Change-Id: I3ed6365e1781119d9f9e2c27e5311b7299cbcf09
Reviewed-on: https://review.typo3.org/44737
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Daniel Lorenz <forge@extco.de>
Tested-by: Wolfgang Wagner <wolfgang.wagner.fn@gmail.com>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Steffen Müller <typo3@t3node.com>
Tested-by: Steffen Müller <typo3@t3node.com>
typo3/sysext/fluid_styled_content/Resources/Private/Partials/MediaGallery.html

index ce4ad22..a6e25d0 100644 (file)
                                                        </f:if>
 
                                                        <f:switch expression="{column.media.type}">
-                                                               <f:case default="TRUE">
-                                                                       <f:render section="imageType" arguments="{_all}" />
-                                                               </f:case>
                                                                <f:case value="3">
                                                                        <f:render section="audioType" arguments="{_all}" />
                                                                </f:case>
                                                                <f:case value="4">
                                                                        <f:render section="videoType" arguments="{_all}" />
                                                                </f:case>
+                                                               <f:case default="TRUE">
+                                                                       <f:render section="imageType" arguments="{_all}" />
+                                                               </f:case>
                                                         </f:switch>
 
                                                        <f:if condition="{column.media.description}">