Index: t3lib/class.t3lib_loaddbgroup.php =================================================================== --- t3lib/class.t3lib_loaddbgroup.php (revision 10113) +++ t3lib/class.t3lib_loaddbgroup.php (working copy) @@ -655,7 +655,7 @@ // Always add the pointer to the parent uid if ($isOnSymmetricSide) { $updateValues[$symmetric_field] = $parentUid; - } else { + } elseif(isset($foreign_field)) { $updateValues[$foreign_field] = $parentUid; } Index: t3lib/class.t3lib_tcemain.php =================================================================== --- t3lib/class.t3lib_tcemain.php (revision 10113) +++ t3lib/class.t3lib_tcemain.php (working copy) @@ -2528,6 +2528,9 @@ $newValue = ($keepTranslation ? 0 : $dbAnalysis->countItems(FALSE)); // IRRE with MM relation: } else { + $skipSorting = ($this->callFromImpExp ? TRUE : FALSE); + $dbAnalysis->writeForeignField($tcaFieldConf, $id, 0, $skipSorting); + 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);