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

fix: fix search when prefix table is used #3107

Merged
merged 4 commits into from
Oct 24, 2019
Merged

Conversation

asbiin
Copy link
Member

@asbiin asbiin commented Oct 20, 2019

This fix #3090

@asbiin asbiin merged commit f546b58 into master Oct 24, 2019
@asbiin asbiin deleted the fix/prefix-table-2019-10-20 branch October 24, 2019 19:36
@@ -511,7 +511,7 @@ public function search(Request $request)
return;
}

$results = SearchHelper::searchContacts($needle, 20, '`contacts`.`created_at`');
$results = SearchHelper::searchContacts($needle, 20, '`'.DB::connection()->getTablePrefix().'contacts`.`created_at`');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asbiin berk.

Can't we do an helper for this instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes good idea!

@github-actions
Copy link

This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQLSTATE[42S22]: Column not found: 1054
2 participants