Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL error while searching by variant name in stock management view #5659

Closed
tvdeyen opened this issue Feb 12, 2024 · 3 comments
Closed

SQL error while searching by variant name in stock management view #5659

tvdeyen opened this issue Feb 12, 2024 · 3 comments
Labels
type:bug Error, flaw or fault

Comments

@tvdeyen
Copy link
Member

tvdeyen commented Feb 12, 2024

Getting the an issue in Stock management view while searching by variant name.

ActiveRecord::StatementInvalid (PG::InvalidColumnReference: ERROR:  for SELECT DISTINCT, ORDER BY expressions must appear in select list
LINE 1: ...e_option_values"."name" ILIKE '%blish%') ORDER BY "spree_var...

will open an issue as this is a regression we introduced in 4.2

Originally posted by @tvdeyen in #3626 (comment)

@tvdeyen tvdeyen added the type:bug Error, flaw or fault label Feb 12, 2024
@nvandoorn
Copy link
Contributor

Hi @tvdeyen, I believe this is a duplicate of this issue #5506. I have a failing feature spec written for #5506 but I haven't settled on a solution yet, so I will put up draft PR at some point today.

@tvdeyen
Copy link
Member Author

tvdeyen commented Feb 13, 2024

Thanks, indeed @nvandoorn

@tvdeyen tvdeyen closed this as completed Feb 13, 2024
@nvandoorn
Copy link
Contributor

@tvdeyen I opened #5660, let me know what you think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Error, flaw or fault
Projects
None yet
Development

No branches or pull requests

2 participants