Closed
Description
Preconditions (*)
- Magento 2.2.3
Steps to reproduce (*)
- Go to Admin -> Stores -> Taxes -> Tax Rules
- Add a tax rule
- Search tax rule using both Name and Tax Rate fields
eg. Name = Alabama & Tax Rate = US-AL
Expected result (*)
- Combined search executed and output is displayed to admin
- Admin can continue using tax rate search again
Actual result (*)
- MySQL error is thrown
Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'code' in where clause is ambiguous, query was: SELECT COUNT(DISTINCT main_table.tax_calculation_rule_id) FROM
tax_calculation_rule
ASmain_table
LEFT JOINtax_calculation
AStc
ON main_table.tax_calculation_rule_id = tc.tax_calculation_rule_id
LEFT JOINtax_calculation_rate
ASrc
ON tc.tax_calculation_rate_id = rc.tax_calculation_rate_id WHERE ((code
LIKE '%Alabama%')) AND ((rc
.code
LIKE '%US-AL%'))
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release