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

Asset Browser: Optionally restrict the search to a single folder #6673

Conversation

arthurperton
Copy link
Contributor

Fixes #6275.

Pretty straightforward. I have one thing I am not sure about though. In BrowserController@search, will it be okay to add the where clause $query->where('folder', $path) when a search index is used?

@jasonvarga
Copy link
Member

will it be okay to add the where clause $query->where('folder', $path) when a search index is used?

Yup

@jasonvarga jasonvarga merged commit 96c80cb into statamic:3.3 Sep 8, 2022
@arthurperton arthurperton deleted the issue/issue-6275-assets-fieldtype-restrict-search branch September 8, 2022 17:18
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.

Asset field folder with restrict: true: search returns every files from assetContainer
2 participants