Closed (duplicate)
Project:
Ubercart
Version:
6.x-2.0-beta4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2009 at 16:52 UTC
Updated:
18 Feb 2009 at 17:14 UTC
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
Comment #1
Al01 commentedIn this comment is a patch by cha0s, I set the status to duplicate.
Regards,
Al