Project

General

Profile

Actions

Bug #65073

closed

SelectViewHelper doesn't handle optionValueField and optionLabelField for array options

Added by Alexander Schnitzler over 9 years ago. Updated over 8 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.

Actions #1

Updated by Gerrit Code Review over 9 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

Actions #2

Updated by Gerrit Code Review about 9 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

Actions #3

Updated by Anonymous about 9 years ago

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

Updated by Stefan Neufeind about 9 years ago

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

Actions #5

Updated by Gerrit Code Review about 9 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

Actions #6

Updated by Marcus Schwemer about 9 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

Actions #7

Updated by Benni Mack almost 9 years ago

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

Updated by Wouter Wolters almost 9 years ago

  • Status changed from Under Review to Needs Feedback

Still something needed here? The patch is abandoned.

Actions #9

Updated by Susanne Moog almost 9 years ago

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

Updated by Wouter Wolters over 8 years ago

  • Status changed from Needs Feedback to Closed

Issue fixed.

Actions

Also available in: Atom PDF