Feature #16586 » 4270_v5.diff
t3lib/class.t3lib_tceforms.php (working copy) | ||
---|---|---|
$rotateLang = array($PA['_valLang']);
|
||
}
|
||
$conditionData = is_array($editData) ? $editData : array();
|
||
// add current $row to data processed by isDisplayCondition()
|
||
$conditionData['parentRec'] = $row;
|
||
$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]];
|
||
if ($ffValueKey) {
|
||
if (strpos($parts[1], 'parentRec.') !== FALSE) {
|
||
$fParts = explode('.',$parts[1]);
|
||
$theFieldValue = $row['parentRec'][$fParts[1]];
|
||
} else {
|
||
$theFieldValue = $row[$parts[1]][$ffValueKey];
|
||
}
|
||
} else {
|
||
$theFieldValue = $row[$parts[1]];
|
||
}
|
||
switch((string)$parts[2]) {
|
||
case 'REQ':
|
- « Previous
- 1
- 2
- 3
- Next »