Bug #17311 » 6012.patch
class.t3lib_tceforms.php 2007-07-23 14:04:43.000000000 +0200 | ||
---|---|---|
*/
|
||
function setTSconfig($table,$row,$field='') {
|
||
$mainKey = $table.':'.$row['uid'];
|
||
// this enables Page TSconfig propagation for new contents in new pages (like f.e. direct_mail does 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);
|
||
}
|