Bug #64534
closed
useCombination: does not support foreign_types
Added by Andreas Allacher over 9 years ago.
Updated almost 3 years ago.
Category:
FormEngine aka TCEforms
Description
It is currently not possible to use foreign_types in combination with useCombination.
It might be enough to have this option available in the "MM" table and not in the one where useCombination is set, where it is currently ignored.
Though in the best case this might even be set in the table where I set useCombination.
Files
Related issues
1 (1 open — 0 closed)
To clarify:
I mean the appearance setting useCombination for an inline field in TCA configuration / backend editing.
Then the foreign_selector field will be combined to the inline rendering, instead of a select.
This works but I cannot pass foreign_types to the foreign_selector field that way. So I have to use the default showitem which might not be applicable in this scenario.
Bascially the issue is in
\TYPO3\CMS\Backend\Form\Element\InlineElement::renderCombinationTable method:
Inside I have the following call:
$this->renderMainFields($comboConfig['foreign_table'], $comboRecord);
That mean the TCA setting 'foreign_types' is not passed on to the renderMainFields method.
There are two possibilities pass on the 'foreign_types' setting of the childrecord's foreign_selector field.
Or to pass on a foreign_types_combination setting from the field where I set useCombination.
I will provide an example/code change later.
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36414
Added Demo EXT, possible commit that includes support for both options and screenshots.
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36414
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36414
- Status changed from Under Review to New
Patchset abandonded due to FormEngine rewrite.
- Category set to FormEngine aka TCEforms
- Status changed from New to Needs Feedback
Can somebody check whether this is still an issue since the formengine rewrite?
- Related to Bug #81176: IRRE + useCombination: overrideChildTca not working for ChildChild added
As far as I understand, #81176 is the descendant to this one after the formengine rewrite...
- Status changed from Needs Feedback to Closed
Also available in: Atom
PDF