Project

General

Profile

Actions

Bug #47484

closed

selected option not respected in sysext frontend -> FormContentObject

Added by Uwe Trotzek about 11 years ago. Updated almost 11 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-04-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

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 = <p class="suche">###LABEL### ###FIELD###</p>
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"


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #43893: selected = 1 doesn't work in class.tslib_content_form.phpClosed2012-12-11

Actions
Actions #1

Updated by Gerrit Code Review about 11 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20105

Actions #2

Updated by Wouter Wolters almost 11 years ago

  • Status changed from Under Review to Rejected

Thanks for the report! This one is already under review at #43893 Can you give your testing and votes there?

Actions

Also available in: Atom PDF