[BUGFIX] Publishing delete placeholder affects other workspaces
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / DataHandling / DataHandler.php
index 7a1f3cf..65a0b36 100644 (file)
@@ -4266,7 +4266,7 @@ class DataHandler {
         * @todo Define visibility
         */
        public function deleteVersionsForRecord($table, $uid, $forceHardDelete) {
-               $versions = BackendUtility::selectVersionsOfRecord($table, $uid, 'uid,pid');
+               $versions = BackendUtility::selectVersionsOfRecord($table, $uid, 'uid,pid', $this->BE_USER->workspace);
                if (is_array($versions)) {
                        foreach ($versions as $verRec) {
                                if (!$verRec['_CURRENT_VERSION']) {