Needs review
Project:
UC Discount Framework
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2011 at 17:37 UTC
Updated:
25 May 2012 at 18:05 UTC
Scenario:
uc_discounts.js uses deprecated at-symbol attribute selectors of the form [@name*=value]. The "@-attribute" syntax was deprecated as of Jquery 1.2 and removed as of Jquery 1.3 for the preferred [name*=value] syntax.
Therefore, while uc_discount's javascript works with off-the-shelf Drupal, it breaks when jquery update is enabled.
(Jquery Update 2.x is used by 75,000+ sites as of this writing: http://drupal.org/project/usage/jquery_update )
The attached patch updates the syntax in uc_discount.js to the new standard by removing the @'s
I'm surprised no one else has run into this.
| Comment | File | Size | Author |
|---|---|---|---|
| uc_discounts_jquery_compatibility.patch | 1.31 KB | aaronbauman |
Comments
Comment #1
aaronbaumanComment #2
jeremy.zerr commentedDefinitely can confirm this as a bug. Completely broke the shopping cart and ability for customers to pay when they were selecting an existing address. Moving to Critical because I think that's appropriate as it completely breaks the cart, and creates an unneeded dependency on jQuery version when it can be avoided. I also read that the new name= works in older versions of jQuery, at least back to 1.2, so it should be backwards compatible.
I didn't exactly apply the patch, but just made the changes in the file by hand, so I can't totally move from "needs review" to "reviewed & tested". But is such a small change that I hope this can make it in someday.
Jeremy Zerr