Error message when a user is trying to update all results in all pages does not describe the problem well

Created on 6 December 2023, 12 months ago
Updated 26 January 2024, 10 months ago

Problem/Motivation

First of all, thank you so much for creating this module! I am able to update the moderation state of multiple nodes as long as I select the nodes I want update; however, when I choose the option to update all views results, I get the error below which isn't very helpful.

The view does not support passing entities correctly.

Steps to reproduce

- Create a view page of moderated nodes, select table format, add VBO field, add title field, and check the "Transition content to a new workflow state" option.
- Check any box from one of the views results, and check the option to "Select / Deselect" all results from the view.
- Click on "Apply to selected items".
- The next string will show you the error message mentioned above.

Proposed resolution

On VboWorkflowTransition::buildConfigurationForm(), check if the number of selected items is equal to the number of results. This will tell us if a user wants to update all of the views results or just a subset. If a user wants to update all of the results and that functionality is not available, then we can show "Selecting all results in all pages is currently not supported" or "Selecting all results is not supported due to potential performance issues" or something like that.

Remaining tasks

- Update error message when user selects all results in all pages.

User interface changes

- Change in error message when all results are selected.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mmenavas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024