Project

General

Profile

Bug #17461 » 0005948_41.patch

Administrator Admin, 2007-07-11 16:49

View differences:

t3lib/class.t3lib_tcemain.php (Arbeitskopie)
// Replace relations to NEW...-IDs in values:
if(is_array($valueArray)) {
$foreign_table = $tcaFieldConf['foreign_table'];
foreach($valueArray as $key => $value) {
if(strpos($value, 'NEW') !== false) {
// fetch the proper uid as integer for the NEW...-ID
$valueArray[$key] = $this->substNEWwithIDs[$value];
// set a hint that this was a new child record
$this->newRelatedIDs[$table][] = $valueArray[$key];
// Set a hint that this was a new child record:
$this->newRelatedIDs[$foreign_table][] = $valueArray[$key];
}
}
$remapAction['args'][$remapAction['pos']['valueArray']] = $valueArray;
(1-1/2)