Index: t3lib/class.t3lib_tcemain.php =================================================================== --- t3lib/class.t3lib_tcemain.php (revision 7290) +++ t3lib/class.t3lib_tcemain.php (working copy) @@ -3810,13 +3810,18 @@ $inlineType = $this->getInlineFieldType($conf); if ($inlineType == 'list' || $inlineType == 'field') { $moveTable = $foreign_table; + if ($table == 'pages') { + // If the inline elements are related to a page record, + // make sure they reside at that page and not at its parent + $destPid = $uid; + } $dbAnalysis = t3lib_div::makeInstance('t3lib_loadDBGroup'); $dbAnalysis->start($value, $conf['foreign_table'], '', $uid, $table, $conf); } } } - // move the records + // Move the records if (isset($dbAnalysis)) { // Moving records to a positive destination will insert each // record at the beginning, thus the order is reversed here: