Posted by betz on October 31, 2012 at 11:09pm
3 followers
| Project: | Ubercart |
| Version: | 7.x-3.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi,
Ì converted the query that gets all the combinations for the adjustments form to a dynamic query.
This way i can alter the query from a contrib module i just created on http://drupal.org/project/uc_attribute_ignore
This patch just does exactly the same as the original query, i just added a tag to it.
Could this be committed?
Cheers!
-- Tom
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| ubercart-attribute-query.patch | 1.83 KB | Idle | PASSED: [[SimpleTest]]: [MySQL] 2,459 pass(es). | View details |
Comments
#1
#2
I fixed the coding standard issues in the patch, but otherwise this is unchanged. We have a test for the adjustments form, so if this passes and you confirm it's okay, then I will commit it.
#3
The last submitted patch, 1828596-attribute-adjustments-dynamic-query.patch, failed testing.
#4
Heh, well at least the tests work.
#5
Yes, I could't get this query to work in this way also.
So I guess it is more then just coding standards, it changes the query all together...
#6
leftJoin() is not chainable, as it returns an alias. #4 seems to work, though.
Chainable vs non-chainable methods: http://drupal.org/node/1060924
#7
#8
Just applied patch to dev and tested, everything seems to work normally.
#9
Committed.
#10
Automatically closed -- issue fixed for 2 weeks with no activity.