Changes in beta1 break the experimental Autocomplete (draggable table) widget for queues with a max size. There are no autocomplete fields for unused queue slots, and clicking 'Remove' buttons for existing queue items has no effect.
The widget tests for FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED in a couple of places, so it is incompatible with the cardinality change introduced by #3021483: Hide "add another item" when queue is full.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | interdiff-7.txt | 1.2 KB | amateescu |
| #7 | 3047463-7.patch | 14.79 KB | amateescu |
| #6 | 3047463-6.patch | 14.69 KB | amateescu |
Comments
Comment #2
justcaldwellHere's the ajax error triggered by clicking a 'Remove' button on a limited queue:
This happens because the getWidgetElementAjax fucntion in EntityqueueDragableTableWidget.php (lines 196-199) returns null if the cardinality is anything other than unlimited:
So, as it's currently implemented, the draggable table widget is incompatible with the enforced cardinality introduced in beta1.
Comment #3
justcaldwellComment #4
amateescu commentedUgh.. I was afraid this day would come eventually. As mentioned in #2489514-5: Convert the draggable table widget to a FieldWidget plugin, the current code of this widget does not work very well and it probably needs to be rewritten.. again :/
I'll give it a try.
Comment #5
justcaldwellWorth the effort, IMO, since draggable table is a pretty big UX improvement over standard autocomplete!
Easy for me to say, I guess, since I'm not the one doing the work :)
Comment #6
amateescu commentedHere we go. With this patch, the draggable table widget seems to work reliably in every situation, so it's about time we drop the 'experimental' label and make it the default widget for subqueues!
@justcaldwell, can you please give it a spin as well and let me know if everything works correctly? :)
Comment #7
amateescu commentedFixed a regression with the
link_to_entitysetting.Comment #8
justcaldwellVery nice. I tested #7 every way I could think of and it worked great. Thanks @amateescu.
Comment #10
amateescu commentedAwesome, thanks for testing!
Committed to 8.x-1.x, and I guess it's time for a beta2 release :)