Index: t3lib/class.t3lib_tcemain.php =================================================================== --- t3lib/class.t3lib_tcemain.php (Revision 7063) +++ t3lib/class.t3lib_tcemain.php (Arbeitskopie) @@ -2496,6 +2496,11 @@ // update record in intermediate table (sorting & pointer uid to parent record) $dbAnalysis->writeForeignField($tcaFieldConf, $id, 0, $skipSorting); $newValue = ($keepTranslation ? 0 : $dbAnalysis->countItems(false)); + // IRRE with MM relation: + } else if ($this->getInlineFieldType($tcaFieldConf) == 'mm') { + // in order to fully support all the MM stuff, directly call checkValue_group_select_processDBdata instead of repeating the needed code here + $valueArray = $this->checkValue_group_select_processDBdata($valueArray, $tcaFieldConf, $id, $status, 'select', $table, $field); + $newValue = ($keepTranslation ? 0 : $valueArray[0]); // IRRE with comma separated values: } else { $valueArray = $dbAnalysis->getValueArray(); @@ -6645,7 +6650,10 @@ */ function dbAnalysisStoreExec() { foreach ($this->dbAnalysisStore as $action) { - $id = t3lib_BEfunc::wsMapId($action[4], $this->substNEWwithIDs[$action[2]]); + $id = t3lib_BEfunc::wsMapId( + $action[4], + (t3lib_div::testInt($action[2]) ? $action[2] : $this->substNEWwithIDs[$action[2]]) + ); if ($id) { $action[0]->writeMM($action[1], $id, $action[3]); }