[BUGFIX] Show inline elements in workspaces 23/49723/2
authorRobert Vock <robert.vock@4wdmedia.de>
Thu, 1 Sep 2016 13:54:43 +0000 (15:54 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 1 Sep 2016 23:08:46 +0000 (01:08 +0200)
If one inline element gets deleted in a workspace, no inline elments
will be shown at all.

Resolves: #76012
Releases: master, 7.6
Change-Id: I34e90336d518d943f010dee38b1f4ce06295afe9
Reviewed-on: https://review.typo3.org/49723
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php

index 971bdb9..c9c27a0 100644 (file)
@@ -397,7 +397,7 @@ class TcaInline extends AbstractDatabaseRecordProvider implements FormDataProvid
                 if (!empty($workspaceVersion)) {
                     $versionState = VersionState::cast($workspaceVersion['t3ver_state']);
                     if ($versionState->equals(VersionState::DELETE_PLACEHOLDER)) {
-                        return [];
+                        continue;
                     }
                     $uid = $workspaceVersion['uid'];
                 }