Project

General

Profile

Actions

Bug #99104

open

pasting records into a TCA TYPO3 group field doesn't work

Added by Ralph Brugger over 1 year ago. Updated 12 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2022-11-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

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="[{&quot;title&quot;:&quot;[Kein Titel]&quot;,&quot;value&quot;:&quot;tx_bwmediathekasset_item_1&quot;}]" 
    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>
Actions #1

Updated by Ralph Brugger 12 months ago

PING:
any idea?

Actions

Also available in: Atom PDF