#54250Extbase: MM_match_fields is not considered in MM-Selects
Description
Hello Extbase-Team,
I have a category field in my extension:
'categories' => array(
'exclude' => 1,
'label' => 'LLL:EXT:jw_forms/Resources/Private/Language/locallang_db.xml:tx_jwforms_domain_model_form.categories',
'config' => array(
'type' => 'select',
'foreign_table' => 'sys_category',
'MM' => 'sys_category_record_mm',
'MM_match_fields' => array(
'tablenames' => 'tx_jwforms_domain_model_form',
),
'MM_opposite_field' => 'items',
'renderMode' => 'tree',
'treeConfig' => array(
'rootUid' => 0,
'parentField' => 'parent',
'appearance' => array(
'showHeader' => TRUE,
'expandAll' => FALSE,
),
),
'minitems' => 0,
'maxitems' => 5,
),
),
Then I build my query:
if ($settings['categories']) {
$categories = t3lib_div::trimExplode(',', $settings['categories']);
$constraintAnd[] = $query->in('categories.uid', $categories);
}
As you know the categories has to be differed by tablenames, but this querypart isn’t there. This results in wrong records from db.
Stefan