Project

General

Profile

Actions

Bug #91713

closed

Wrong decision in SwitchViewHelper

Added by Daniel Hettler almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2020-06-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

Description

Hello everyone,

I think there is a bug in the fluid ViewHelper f:switch. Let me explain it with the following example. This is the snippet to reproduce the misbehaviour.

<f:switch expression="3-non-slide">
    <f:case value="6">
            CASE 6
        </f:case>
        <f:case value="3">
            CASE 3
        </f:case>
        <f:case value="3-non-slide">
            CASE 3-non-slide
        </f:case>
        <f:case value="2-non-slide">
            CASE 2-non-slide
        </f:case>
        <f:case value="2">
            CASE 2
        </f:case>
        <f:case value="2-with-2-elements">
        CASE 2-with-2-elements
        </f:case>
</f:switch>

If I'm not doing something terribly wrong then the result should be "CASE 3-non-slide" but it is "CASE 3" instead.
Can somebody test the snippet above and confirm this bug? For simplicity there is no fluid variable in the expression attribute.

Thanks in advance!

Actions

Also available in: Atom PDF