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);