Download & Extend

Attributes form query converted to dynamic query for altering.

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

AttachmentSizeStatusTest resultOperations
ubercart-attribute-query.patch1.83 KBIdlePASSED: [[SimpleTest]]: [MySQL] 2,459 pass(es).View details

Comments

#1

Status:active» needs review

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

AttachmentSizeStatusTest resultOperations
1828596-attribute-adjustments-dynamic-query.patch1.83 KBIdleFAILED: [[SimpleTest]]: [MySQL] 2,676 pass(es), 8 fail(s), and 0 exception(s).View details

#3

Status:needs review» needs work

The last submitted patch, 1828596-attribute-adjustments-dynamic-query.patch, failed testing.

#4

Status:needs work» needs review

Heh, well at least the tests work.

AttachmentSizeStatusTest resultOperations
1828596-attribute-adjustments-dynamic-query-4.patch1.86 KBIdlePASSED: [[SimpleTest]]: [MySQL] 2,685 pass(es).View details

#5

Status:needs review» needs work

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

Status:needs work» needs review

#8

Status:needs review» reviewed & tested by the community

Just applied patch to dev and tested, everything seems to work normally.

#9

Status:reviewed & tested by the community» fixed

Committed.

#10

Status:fixed» closed (fixed)

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

nobody click here