Project

General

Profile

Bug #17311 » 0006012_4.4trunk-rev6730.patch

Administrator Admin, 2010-01-16 19:01

View differences:

t3lib/class.t3lib_tceforms.php (working copy)
*/
function setTSconfig($table,$row,$field='') {
$mainKey = $table.':'.$row['uid'];
// propagate Page TSconfig for new records in new pages (like f.e. direct_mail, when creating new newsletters)
// if a page is created AND some other content is created in this new page at the same time, the Page TSconfig from the new page's parent page is respected, if found
if (substr($row['pid'], 0, 3) == 'NEW' && $this->cachedTSconfig['pages:' . $row['pid']] && $this->cachedTSconfig['pages:' . $row['pid']]['_CURRENT_PID']) {
$row['pid'] = $this->cachedTSconfig['pages:' . $row['pid']]['_CURRENT_PID'];
}
if (!isset($this->cachedTSconfig[$mainKey])) {
$this->cachedTSconfig[$mainKey]=t3lib_BEfunc::getTCEFORM_TSconfig($table,$row);
}
(2-2/2)