#99104pasting records into a TCA TYPO3 group field doesn't work
Description
This TCA-Definition:
'related' => [
'label' => 'LLL:EXT:bwmediathekasset/locallang_db.xml:tx_bwmediathekasset_item.related',
'config' => [
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'tx_bwmediathekasset_item',
'size' => 10,
'autoSizeMax' => 20,
'minitems' => 0,
'maxitems' => 30,
'fieldControl' => [
'editPopup' => [
'disabled' => false,
],
'addRecord' => [
'disabled' => true,
],
'listModule' => [
'disabled' => true,
],
'elementBrowser' => [
'disabled' => false,
],
],
'suggestOptions' => [
'maxItemsInResultList' => 25,
'default' => [
'searchWholePhrase' => 1
],
],
]
],
We want to paste a record from the TYPO3 Clipboard into this field.
TYPO3 8.7.47
Within TYPO3 8.7.47 this code works:
Copy record 6510
into the target record 6503
<a
onclick="setFormValueFromBrowseWin('data[tx_bwmediathekasset_item][6503][related]',unescape('tx_bwmediathekasset_item_6510'),'Krise\u0020bew\u00e4ltigen\u0020und\u0020Zukunft\u0020gestalten,\u002010.11.2022\u002016:09','Krise\u0020bew\u00e4ltigen\u0020und\u0020Zukunft\u0020gestalten,\u002010.11.2022\u002016:09');return false;"
class="btn btn-default"
href="#">
TYPO3 11.5.19
Within TYPO3 11.5.19 this code doesn’t work:
Copy record 6449
into the target record 6442
<a
id="t3js-formengine-fieldcontrol-63749b70924ea204373512"
data-element="data[tx_bwmediathekasset_item][6442][related]"
data-clipboard-items="[{"title":"[Kein Titel]","value":"tx_bwmediathekasset_item_1"}]"
class="btn btn-default"
href="#">
There will be a record wirh an empty title that disappears after saving.
<option value="tx_bwmediathekasset_item_1" title="[Kein Titel]">[Kein Titel]</option>
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[FEATURE] pasting records into a TCA TYPO3 group field doesn't work Resolves: #99104 Releases: main
History 2
-
Georg Ringer changed tracker
BugFeature TYPO3 Version11<span data-processor="relativetime" data-value="2026-10-06T16:43:18+00:00" > 10/06/26, 16:43 </span>
PING:
any idea?