Project

General

Profile

Actions

Bug #94405

closed

Unintentionally behaviour in workspaces module if elements got deselected bevor action

Added by Lukas Speck over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2021-06-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
workspaces
Complexity:
Is Regression:
Sprint Focus:

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);
Actions #1

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

Actions #2

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

Actions #3

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

Actions #4

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

Actions #5

Updated by Oliver Bartsch about 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

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

Actions #7

Updated by Oliver Bartsch about 3 years ago

  • Status changed from Under Review to Resolved
Actions #8

Updated by Benni Mack about 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF