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.
What's wrong
On Return form for Customer, "Select All" Checkbox to select all products of order doesn't work.
Solution
Replace $form['#attached']['js']
by $element['#attached']['js']
in commerce_return_field_widget_form() in commerce_return.module.
See next patch.
Comment | File | Size | Author |
---|---|---|---|
#7 | commerce_return.line_item_manager.js_0.patch | 745 bytes | yatendrasingh121 |
#2 | commerce_rma-select-all-products-customer-ui-2368113-2.patch | 2.24 KB | GoZ |
Comments
Comment #1
GoZ CreditAttribution: GoZ commentedComment #2
GoZ CreditAttribution: GoZ commentedMake select all works checking and unchecking many times.
Also make js a little lighter removing each() function.
Comment #3
GoZ CreditAttribution: GoZ commentedComment #4
jkuma CreditAttribution: jkuma commentedAll good !!
Comment #5
jkuma CreditAttribution: jkuma commentedPorted to 7.x-2.x branch.
Comment #7
yatendrasingh121 CreditAttribution: yatendrasingh121 commentedThis was not working in my case . The problem was drupal standard for writing js file . And after writing js file with drupal standard everthing is working fine .
See attached patch.
Comment #8
jkuma CreditAttribution: jkuma commentedOk Yatendrashing121, your patch is looking good to me, I'm merging it.
Comment #9
GoZ CreditAttribution: GoZ commentedSeems good to. Thanks Yatendrashing121.