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

Search does not work with some phrases when running on PostgreSQL #1671

Closed
gino0631 opened this issue Jan 24, 2022 · 1 comment
Closed

Search does not work with some phrases when running on PostgreSQL #1671

gino0631 opened this issue Jan 24, 2022 · 1 comment

Comments

@gino0631
Copy link

When trying to search for something, a page with "Whoops, looks like something went wrong." is displayed.

FreeScout: 1.7.30
Database: PostgreSQL 12.7

Log entry:

SQLSTATE[42803]: Grouping error: 7 ERROR: column "emails.email" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: select "customers".*, "emails"."email" from "customers" left...
                              ^ (SQL: select "customers".*, "emails"."email" from "customers" left join "emails" on "customers"."id" = "emails"."customer_id" where ("customers"."first_name" like %der% or "customers"."last_name" like %der% or "customers"."company" like %der% or "customers"."job_title" like %der% or "customers"."phones" like %der% or "customers"."websites" like %der% or "customers"."social_profiles" like %der% or "customers"."address" like %der% or "customers"."city" like %der% or "customers"."state" like %der% or "customers"."zip" like %der% or "customers"."zip" like %der% or "emails"."email" like %der%) group by "customers"."id" limit 50 offset 0)
@freescout-helpdesk
Copy link
Owner

Duplicates #1664

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

No branches or pull requests

2 participants