Skip to content
Snippets Groups Projects
Commit f7808d0f authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Reset mass action state when updating workspace listing

Have you ever wondered why "unrelated" records
got processed in workspaces review when using
one of the mass actions?

Simply because the workspace JavaScript component
is using an internal array, holding all selected records.
This internal array however was only reset on leaving
the module.

Therefore, all records which had been selected since
the module was accessed were taken into account
when a mass action was executed. This did not only
affect records which were unchecked prior to mass
action execution, but also records which were no
longer visible at this time, e.g. due to an applied
filter. In the worst case, that led to completely
unrelated records got published to a live workspace.

This is now fixed by resetting the mass action state
whenever the listing gets updated. This way, only
the selected records in the current view are taken
into account when executing a mass action.

Resolves: #94405
Releases: master, 10.4
Change-Id: I40ca...
parent fe19922c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment