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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

GoZ’s picture

Status: Active » Needs review
FileSize
986 bytes
GoZ’s picture

Make select all works checking and unchecking many times.
Also make js a little lighter removing each() function.

GoZ’s picture

jkuma’s picture

Status: Needs review » Reviewed & tested by the community

All good !!

jkuma’s picture

Status: Reviewed & tested by the community » Fixed

Ported to 7.x-2.x branch.

  • goldorak committed a6f0fc8 on 7.x-2.x authored by GoZ
    Issue #2368113 by GoZ, goldorak: Checkbox select All in customer UI...
yatendrasingh121’s picture

This 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.

jkuma’s picture

Ok Yatendrashing121, your patch is looking good to me, I'm merging it.

GoZ’s picture

Seems good to. Thanks Yatendrashing121.

Status: Fixed » Closed (fixed)

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