Project

General

Profile

Actions

Bug #15158

closed

TS_CASE object does support key value 0

Added by old_martinficzel over 18 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-10-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

the typoscript below does not work because the case object does not honor key values of "0".

  1. i know the ts is senseless but it demonstrates the problem
    page.20 = CASE
    page.20 {
    key = 0

    0 = TEXT
    0.value = null

    1 = TEXT
    1.value = one
    }

the only workaround is to use the default key but that makes it necessary to explicitly assign the values of every other key. not very effective and user friendly code if the value 0 is the one to behandled different.

I'm using something like that to reconfigure the tt_content.image settings based on the tt_content.imageorient key.

i will try to examine the core and suggest a patch the next days.

(issue imported from #M1736)

Actions

Also available in: Atom PDF