Issue Bug Closed

#15158TS_CASE object does support key value 0

old_martinficzel 10/28/05, 11:26 updated 08/12/06, 14:21

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.