Review main Merged

63838[BUGFIX] Keep order of selection on importing assets

Andreas Kienast CR +2 V +2 Normal +64 −21 updated 03/23/20, 11:41

Commit message

If assets get imported via mass selection in the Element Browser, the
order of the items is now kept. Since this requires interframe
communication, the Inline Control Container now sends a postMessage to
the Element Browser.

When the import process starts, the first asset of the selection gets
imported. After the import, the postMessage is intercepted and the next
asset get imported, until the queue is empty. As this could be a rather
lenghty process, a progress bar is rendered at the top of the file
table.

To get a more fitting naming, all previously used action names used in
postMessages have been renamed from `typo3:foreignRelation:inserted` to
`typo3:foreignRelation:insert`.

As a drive-by fix, the server is not spammed with n request anymore due
to queueing.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 11