Bug #23734 » t3_tceforms_inline_unique_and_combination_id.patch
typo3_src-4.4.3/t3lib/class.t3lib_tceforms_inline.php 2010-10-14 17:17:34.859735387 +0200 | ||
---|---|---|
$foreign_table = $config['foreign_table'];
|
||
$foreign_selector = $config['foreign_selector'];
|
||
if ($foreign_selector && $config['appearance']['useCombination']) {
|
||
// if ($foreign_selector && $config['appearance']['useCombination']) {
|
||
$comboConfig = $GLOBALS['TCA'][$foreign_table]['columns'][$foreign_selector]['config'];
|
||
$comboRecord = array();
|
||
... | ... | |
$isNewRecord = true;
|
||
}
|
||
if ($foreign_selector && $config['appearance']['useCombination']) {
|
||
// get the TCEforms interpretation of the TCA of the child table
|
||
$out = $this->renderMainFields($comboConfig['foreign_table'], $comboRecord);
|
||
$out = $this->wrapFormsSection($out, array(), array('class' => 'wrapperAttention'));
|
||
... | ... | |
$parentFormFieldName = $this->prependFormFieldNames.$appendFormFieldNames.'['.$foreign_selector.']';
|
||
$out .= '<input type="hidden" name="'.$parentFormFieldName.'" value="'.$comboRecord['uid'].'" />';
|
||
}
|
||
} else {
|
||
$parentFormFieldName = $this->prependFormFieldNames.$appendFormFieldNames.'['.$foreign_selector.']';
|
||
$out .= '<input type="hidden" name="'.$parentFormFieldName.'" value="'.$comboRecord['uid'].'" />';
|
||
}
|
||
return $out;
|
- « Previous
- 1
- 2
- Next »