Issue Bug Rejected

#47484selected option not respected in sysext frontend -> FormContentObject

Uwe Trotzek 04/23/13, 11:50 updated 07/19/13, 20:18

Description

There seems to be a typo in sysext/frontend/Classes/ContentObject/FormContentObject.php Line 96

$singleKeyArray should be $singleKey_valueArray

You can test it with the following Typoscript

page.200 = FORM
page.200 {
  type = index.php?id=466
accessibility = 1
noWrapAttr = 1
formName = suche
dontMd5FieldNames = 1
layout =

###LABEL### ###FIELD###


dataArray {
10.label = Color
10.type = color=select
10.valueArray {
10.label = Blue
10.value = 1
20.label = Green
20.value = 2
20.selected = 1
}
}
}

without the bugfix the option green will not be rendered as “selected”

Reviews 0

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