Skip to content

Conversation

@kashyap-kumar
Copy link
Contributor

Issue Reference

Fixes #2397

Description

Add explicit table-qualified filter mappings for products columns to prevent SQL ambiguity error when searching. The 'name' column exists in both products and tags tables, causing "Column 'name' in WHERE is ambiguous" error.

Fixes SQLSTATE[23000] integrity constraint violation during product search.

Now, the DataGrid search functionality can properly distinguish between products.name and tags.name when building WHERE clauses.

How To Test This?

  • Go to /admin/products
  • Search for any product

Add explicit table-qualified filter mappings for products columns to prevent
SQL ambiguity error when searching. The 'name' column exists in both products
and tags tables, causing "Column 'name' in WHERE is ambiguous" error.

Fixes SQLSTATE[23000] integrity constraint violation during product search.

Now, the DataGrid search functionality can properly distinguish between
products.name and tags.name when building WHERE clauses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Product Search Unresponsive in Krayin CRM Product Page

1 participant