Bug #17311 » 0006012_4.4trunk-rev6730.patch
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);
|
||
}
|
- « Previous
- 1
- 2
- Next »