Problem/Motivation

In Entity Queue module when we decrease amount of restrict queue for existing amount items, then we are unable to Remove, Reverse, Shuffle, Clear and Save it.
For example, I created a queue where I limited the queue from 1 to 4, then I add items and save it. Then I decrease the queue from 1 to 3. When I back to the created queue and try to edit the items, then is not possible remove, reverse, shuffle, clear and save.
When press Save button then message is displayed: This queue can not hold more than 3 items.
Items: this field cannot hold more than 3 values

Steps to reproduce

  1. install Entityqueue 8.x-1.2
  2. create new queue: Structure->Entityqueue ->Add entity queue
  3. configure entity queue: mark checkbox Simple queue and in Queue settings tab add restrict queue from 1 to 4 and save it
  4. navigate to entity queue and click on Edit items created queue: Structure->Entityqueue
  5. add 4 items and Save
  6. change Restrict queue maximum for 3: Structure->Entityqueue->NameCreatedQueue and Save
  7. back to created queue and Edit items: Structure->Entityqueue and click Edit items button on right created queue
  8. button: Remove, Reverse, Shuffle, Clear, not work and when try to Save then message is:

This queue can not hold more than 3 items.
Items: this field cannot hold more than 3 values.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
error_message.png13.89 KBkrzysiek_kd
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

krzysiek_kd created an issue. See original summary.

krzysiek_kd’s picture

Status: Needs review » Active
beatrizrodrigues’s picture

Assigned: Unassigned » beatrizrodrigues
beatrizrodrigues’s picture

Assigned: beatrizrodrigues » Unassigned

Sorry, I could not proceed in this issue.

amateescu made their first commit to this issue’s fork.

amateescu’s picture

Version: 8.x-1.2 » 8.x-1.x-dev
Status: Active » Needs review

The dragtable widget was long due for some cleanup and refactoring, so I used this bug as an excuse to finally do it :)

  • amateescu committed 4ee40ba0 on 8.x-1.x
    fix: #3258972 Unable to Remove and Save entity queue items
    
    By:...
amateescu’s picture

Status: Needs review » Fixed

Merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • amateescu committed e51fd27d on 8.x-1.x
    fix: #3258972 - followup: Fix various issues found during manual testing...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.