When trying to save a new tax rule, I get an error that line 124 in uc_taxes.admin.inc has a mismatch between column counts in the INSERT statement. And it does.

this

db_query("INSERT INTO {uc_taxes} (name, rate, taxed_product_types, taxed_line_items, weight, shippable) VALUES (%d, '%s', %f, '%s', '%s', %d, %d)",

should be

db_query("INSERT INTO {uc_taxes} (name, rate, taxed_product_types, taxed_line_items, weight, shippable) VALUES ('%s
', %f, '%s', '%s', %d, %d)",

The first column should be name, not the auto-increment id. I also see this in uc_taxes_copy function as well.

Comments

Al01’s picture

Status: Active » Closed (duplicate)

In this comment is a patch by cha0s, I set the status to duplicate.

Regards,
Al