Problem/Motivation

Submitting the overview page with items selected returns the message "No items selected"; it only works when items are dragged 'n dropped to change their order, without that step it doesn't work.

Steps to reproduce

Install Queue Order.
Open the Overview page.
Select items in the list.
Click the "Apply to selected items" button.

Proposed resolution

Fix the bug.

Remaining tasks

Fix the bug.

User interface changes

Submitting the form works when Queue Order is installed.

API changes

TBD

Data model changes

n/a

Issue fork queue_ui-3390467

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

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

Title: "No items selected" when submitting the overview page » "No items selected" when submitting the overview page when Queue Order is installed
Issue summary: View changes

This seems to only happen when Queue Order is installed.

damienmckenna’s picture

Issue summary: View changes
damienmckenna’s picture

After the form is submitted, this is what Table::validateTable() is trying to process:
:validateTable()

This is the data from $complete_form['queues']['values'] in Table::validateTable():
What the queues data looks like

This is the data from $complete_form['weight']['values']:
What the weight data looks like

Clearly the problem is that the item weight is taking precedence over the item processing.

jnlar’s picture

StatusFileSize
new28.1 KB

Not exactly the same issue as yours @DamienMckenna but I also get the error when I try to batch process just a single queue that has cron disabled, as I was testing a use case where I wanted to manually batch process the queue.

As $form['cron'] is a table it's also being validated against Table::validateTable() and failing due to 'Cron time' not being set:

xdebug variables

ivnish’s picture

Same with @jnlar

voleger’s picture

Version: 3.1.x-dev » 3.2.x-dev
Status: Active » Needs work

Trying to reproduce the issue by functional test

voleger’s picture

Status: Needs work » Needs review

It looks like it is fixed in 3.2.x. Anyway, I added an update for the submit handler. If the test and changes look good, I'll going to merge MR and close the issue. I have a plan to release 3.2.0 within a week.

  • voleger committed 150bb67f on 3.2.x
    Issue #3390467: "No items selected" when submitting the overview page...
voleger’s picture

I have a related issue in #3446581: Better support for Derivative queue workers, so I'm merging that. Also, I'll keep this issue open for feedback.

  • voleger committed 783ab9f8 on 3.2.x
    Issue #3390467 by voleger, damienmckenna, jnlar, ivnish: "No items...
voleger’s picture

Status: Needs review » Fixed

I see no need to change the cron time limit in bulk. I refactored, changing the cron limit for specific queues in a separate edit form. Also, it allows us to avoid changing the limit by accident by submitting order changes.

Merged changes into 3.2.x

Status: Fixed » Closed (fixed)

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