Bug #65073

SelectViewHelper doesn't handle optionValueField and optionLabelField for array options

Added by Alexander Schnitzler almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Fluid
Target version:
Start date:
2015-02-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

<f:form.select options="{array}" optionValueField="uid" optionLabelField="title" />

should work with the given array:
array(
    array(
        'uid' => 1,
        'title' => 'Foo'
    ),
    array(
        'uid' => -1,
        'title' => 'Bar'
    ),
    array(
        'title' => 'Baz'
    ),
    array(
        'uid' => '2'
    ),
)

Currently fluid tries to use the keys as values and the arrays as label which results in an error.


Related issues

Related to TYPO3.Fluid - Bug #65424: SelectViewHelper must respect option(Value|Label)Field for arraysUnder Review2015-02-28

Actions
Precedes Sphinx Python Documentation Generator - Bug #65487: PHP Warning when loading documentation in EMClosedXavier Perseguers2015-03-03

Actions
#1

Updated by Gerrit Code Review almost 6 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36909

#2

Updated by Gerrit Code Review almost 6 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/37376

#3

Updated by Anonymous almost 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#4

Updated by Stefan Neufeind almost 6 years ago

Also created an issue upstream at Flow-Fluid, #65424.

#5

Updated by Gerrit Code Review almost 6 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/37504

#6

Updated by Marcus Schwemer almost 6 years ago

Hi,

this breaks the current behavious as stated in post-verifies on Gerrit https://review.typo3.org/#/c/36909/

Another report is for powermail: #65792

IMO this change should be done in a non-breaking way or should be reverted.

Kind regards,
Marcus

#7

Updated by Benni Mack over 5 years ago

  • Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
#8

Updated by Wouter Wolters over 5 years ago

  • Status changed from Under Review to Needs Feedback

Still something needed here? The patch is abandoned.

#9

Updated by Susanne Moog over 5 years ago

  • Target version changed from 7.4 (Backend) to 7.5
#10

Updated by Wouter Wolters over 5 years ago

  • Status changed from Needs Feedback to Closed

Issue fixed.

Also available in: Atom PDF