Project

General

Profile

Bug #24635 ยป foreign-sorting.patch

Administrator Admin, 2011-01-18 10:17

View differences:

t3lib/class.t3lib_loaddbgroup.php (working copy)
// Always add the pointer to the parent uid
if ($isOnSymmetricSide) {
$updateValues[$symmetric_field] = $parentUid;
} else {
} elseif(isset($foreign_field)) {
$updateValues[$foreign_field] = $parentUid;
}
t3lib/class.t3lib_tcemain.php (working copy)
$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);
    (1-1/1)