Review TYPO3_6-1 Merged

28471[BUGFIX] Cannot use contain with multivalued static enumeration column

Xavier Perseguers CR +2 V +2 Easy +2 −0 updated 03/19/14, 06:39

Commit message

When a column is defined as a multivalued static enumeration:
'somecolumn' => array(
    'exclude' => 0,
    'label' => 'Some label',
    'config' => array(
        'type' => 'select',
        'items' => array(
            array('Option 1', 1),
            array('Option 2', 2),
            array('Option 3', 3),
            array('Option 4', 4),
        ),
        'size' => 4,
        'maxitems' => 4,
        'eval' => ''
    ),
),
it is not possible to query the domain model using operation "contains":
$value = 2;
$query->matching(
    $query->contains('somecolumn', $value)
);

Review

  • Code review CR +2
    • Xavier Perseguers +2
  • Verified V +2
    • Xavier Perseguers +2

Files 1

Review log 3

  1. Xavier Perseguers commented on patch set 1 03/17/14, 15:21

    This is a backport from master. Will personally wait to get feedback from someone experiencing the bug in 6.1 (I fixed/tested it in 6.2). Someone having the bug has been notified.
  2. Xavier Perseguers voted on patch set 1 V +2 CR +2 03/19/14, 06:39

  3. Xavier Perseguers merged patch set 2 03/19/14, 06:39