Project

General

Profile

Feature #16586 » t3lib_tceforms.php-4270-2.diff

Administrator Admin, 2009-05-30 17:14

View differences:

class.t3lib_tceforms.php (working copy)
$rotateLang = array($PA['_valLang']);
}
// add parent-record data into the data-array for the displayCond processing
$conditionData = is_array($editData)?$editData:array();
$conditionData = array_merge(
array_combine(
array_map(create_function('$e','return \'parentRec.\'.$e;'),array_keys($row)),
array_values($row)
),
$conditionData
);
$tRows = array();
foreach($rotateLang as $vDEFkey) {
$vDEFkey = 'v'.$vDEFkey;
if (!$value['TCEforms']['displayCond'] || $this->isDisplayCondition($value['TCEforms']['displayCond'],$editData,$vDEFkey)) {
if (!$value['TCEforms']['displayCond'] || $this->isDisplayCondition($value['TCEforms']['displayCond'],$conditionData,$vDEFkey)) {
$fakePA=array();
$fakePA['fieldConf']=array(
'label' => $this->sL(trim($value['TCEforms']['label'])),
......
$parts = explode(':',$displayCond);
switch((string)$parts[0]) { // Type of condition:
case 'FIELD':
$theFieldValue = $ffValueKey ? $row[$parts[1]][$ffValueKey] : $row[$parts[1]];
$theFieldValue = $row[$parts[1]];
if($ffValue && !stristr($parts[1],'parentRec.')) {
$theFieldValue = $row[$parts[1]][$ffValueKey];
}
switch((string)$parts[2]) {
case 'REQ':
(2-2/3)