Bug #64534
closeduseCombination: does not support foreign_types
0%
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
Updated by Andreas Allacher over 9 years ago
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.
Updated by Andreas Allacher over 9 years ago
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.
Updated by Gerrit Code Review over 9 years ago
- 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
Updated by Andreas Allacher over 9 years ago
- File Wrong fields display.png Wrong fields display.png added
- File correct.png correct.png added
- File correct2.png correct2.png added
- File demoinline.zip demoinline.zip added
Added Demo EXT, possible commit that includes support for both options and screenshots.
Updated by Gerrit Code Review over 9 years ago
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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Morton Jonuschat over 8 years ago
- Status changed from Under Review to New
Patchset abandonded due to FormEngine rewrite.
Updated by Christian Eßl almost 5 years ago
- Category set to FormEngine aka TCEforms
Updated by Susanne Moog over 4 years ago
- Status changed from New to Needs Feedback
Can somebody check whether this is still an issue since the formengine rewrite?
Updated by Ralf Hettinger almost 3 years ago
- Related to Bug #81176: IRRE + useCombination: overrideChildTca not working for ChildChild added
Updated by Ralf Hettinger almost 3 years ago
As far as I understand, #81176 is the descendant to this one after the formengine rewrite...
Updated by Christian Kuhn almost 3 years ago
- Status changed from Needs Feedback to Closed
Closing in favor of #81176