Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you save a queue with a value in the add field it add the item to the queue. Basically the Add item button is being triggered on save.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2928485-add-button-trigger.patch | 2.38 KB | quicksketch |
#3 | patch-2928485-3-d7.patch | 1.14 KB | gordon |
#2 | patch-2928485-2-d7.patch | 1.36 KB | gordon |
Comments
Comment #2
gordon CreditAttribution: gordon at Heydon Consulting commentedHere is a patch for this.
Comment #3
gordon CreditAttribution: gordon at Heydon Consulting commentedFound a small bug,
Comment #4
quicksketchThanks, this seems reasonable to me. If I don't see it in the table I don't expect it to be added. I usually prefer to go by the field key rather than the label (though buttons are tricky to identify I know). I'll give this a minor update to change the check, but in concept it's all good.
Comment #5
quicksketchHere's an adjusted patch that takes into account #2928765: Add items to top of the queue instead of the bottom and uses field keys instead of the button label. It also adjusts the "remove" logic to use the keys instead of field name.
Comment #7
quicksketchCommitted to 7.x-1.x.