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.
When editing a promotion and adding conditions, the weight field comes in when adding more values as exposed, and doesn't work right. This because the widgets do not return an element which extends the passed in element array.
Comment | File | Size | Author |
---|---|---|---|
#4 | plugin_select_widgets-2863805-4.patch | 3.79 KB | mglaman |
#3 | promo-with-fix.gif | 205.94 KB | mglaman |
#3 | plugin_select_widgets-2863805-3.patch | 3.41 KB | mglaman |
promo-without-fix.gif | 100.42 KB | mglaman |
Comments
Comment #2
mglamanAnd I just checked, it's like a random clone of _weight, not even the one being used.
Comment #3
mglamanPR: https://github.com/drupalcommerce/commerce/pull/693. Followed approach by IEF, where element is wrapped in a container in widget. Fixes issue.
Comment #4
mglamanUpdated patch. This caused single value to not submit.
Comment #6
bojanz CreditAttribution: bojanz at Centarro commentedYay