In includes/address_select.inc there are curly brackets missing, which are needed to support table prefixes (See http://api.drupal.org/api/drupal/includes%21database.inc/function/db_pre... ).

Patch follows.

CommentFileSizeAuthor
#1 table_prefixing-1545328-2.patch1.48 KBvalderama

Comments

valderama’s picture

Status: Active » Needs review
StatusFileSize
new1.48 KB

Status: Needs review » Needs work

The last submitted patch, table_prefixing-1545328-2.patch, failed testing.

megachriz’s picture

Thanks for catching! I hope to review/test your patch later this week. Quick glance at your code it seems to me it's correcting the bug correctly.

megachriz’s picture

Status: Needs work » Fixed

I've tested your patch. It adds more curly brackets then needed, which will result into errors when you have more than one extra field.
I've changed your patch a little, so only "real" table names are surrounded by curly brackets (the other "table" names are aliases used in the query and shouldn't receive the brackets).

A fix is committed.

Thanks again for reporting.

Status: Fixed » Closed (fixed)

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