Bug #17772 » 6688_trunk.diff
C:/workspace/TYPO3_trunk/t3lib/class.t3lib_tcemain.php (working copy) | ||
---|---|---|
// Remove duplicates: (should not be needed)
|
||
$valueArray = array_unique($valueArray);
|
||
// Example for received data:
|
||
// $value = 45,NEW4555fdf59d154,12,123
|
||
// We need to decide whether we use the stack or can save the relation directly.
|
||
if(strpos($value, 'NEW') !== false || !t3lib_div::testInt($id)) {
|
||
$this->remapStackRecords[$table][$id] = array('remapStackIndex' => count($this->remapStack));
|
||
$this->remapStack[] = array(
|
||
'func' => 'checkValue_group_select_processDBdata',
|
||
'args' => array($valueArray,$tcaFieldConf,$id,$status,'inline',$table),
|
||
'pos' => array('valueArray' => 0, 'tcaFieldConf' => 1, 'id' => 2, 'table' => 5),
|
||
'field' => $field
|
||
);
|
||
unset($res['value']);
|
||
} elseif($value || t3lib_div::testInt($id)) {
|
||
$newValueArray = $this->checkValue_group_select_processDBdata($valueArray,$tcaFieldConf,$id,$status,'inline', $table);
|
||
// Checking that the number of items is correct
|
||
$newVal = $this->checkValue_checkMax($tcaFieldConf, $newValueArray);
|
||
$res['value'] = implode(',',$newVal);
|
||
}
|
||
$this->remapStackRecords[$table][$id] = array('remapStackIndex' => count($this->remapStack));
|
||
$this->remapStack[] = array(
|
||
'func' => 'checkValue_group_select_processDBdata',
|
||
'args' => array($valueArray,$tcaFieldConf,$id,$status,'inline',$table),
|
||
'pos' => array('valueArray' => 0, 'tcaFieldConf' => 1, 'id' => 2, 'table' => 5),
|
||
'field' => $field
|
||
);
|
||
unset($res['value']);
|
||
return $res;
|
||
}
|
- « Previous
- 1
- 2
- Next »