Bug #94405
closedUnintentionally behaviour in workspaces module if elements got deselected bevor action
100%
Description
There is an issue in the workspaces module, where elements are unintentionally published.
Steps:
Various workflow elements are selected by checkbox and then deselected again.
The selected elements are moved to another stage via a stage action (e.g. from Edit > Ready for release).
Subsequently, a selection is made in the same window that differs from the initial selection.
The subsequent step change (e.g. Ready to Publish > Edit) also affects the elements that were not selected at all in the last step
This leads to the fact that in the following, when only one element is selected, many other elements are unintentionally published live.
Found in v9.5
Possible solution
Empty the "markedRecordsForMassAction" array in Backend.js in the method "Backend.renderWorkspaceInfos".
/**
* Renders fetched workspace informations
*
* @param {Object} result
*/
Backend.renderWorkspaceInfos = function(result) {
Backend.elements.$tableBody.children().remove();
*Backend.markedRecordsForMassAction = [];*
Backend.allToggled = false;
Backend.elements.$chooseStageAction.prop('disabled', true);
Backend.elements.$chooseSelectionAction.prop('disabled', true);
Backend.elements.$chooseMassAction.prop('disabled', result.data.length === 0);
Backend.buildPagination(result.total);
Updated by Gerrit Code Review over 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70691
Updated by Gerrit Code Review over 3 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70691
Updated by Gerrit Code Review over 3 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70691
Updated by Gerrit Code Review about 3 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70691
Updated by Oliver Bartsch about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset f7808d0ff005d280f534726d17f11753babe727c.
Updated by Gerrit Code Review about 3 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70728
Updated by Oliver Bartsch about 3 years ago
- Status changed from Under Review to Resolved
Applied in changeset 3ffa550e1a42124c7579d791daf937eb76b45621.