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 serializing indexed unified search array as object #22806

Merged
merged 1 commit into from
Sep 12, 2020

Conversation

ChristophWurst
Copy link
Member

We expect an array of results from the search provider. If the search
provider returns an array with indexes, php will serialize it as object,
not as array (to preserve the keys). The client doesn't need this info,
so we should just discard it and take the values only to always render a
JSON array.

We expect an array of results from the search provider. If the search
provider returns an array with indexes, php will serialize it as object,
not as array (to preserve the keys). The client doesn't need this info,
so we should just discard it and take the values only to always render a
JSON array.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst added this to the Nextcloud 20 milestone Sep 11, 2020
@ChristophWurst ChristophWurst self-assigned this Sep 11, 2020
@ChristophWurst ChristophWurst added this to TO REVIEW (max 4 PRs) in Christoph's Tasks via automation Sep 11, 2020
Copy link
Member

@georgehrke georgehrke left a comment

Choose a reason for hiding this comment

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

reasonable 👍

Christoph's Tasks automation moved this from TO REVIEW (max 4 PRs) to TO INTEGRATE Sep 12, 2020
@skjnldsv skjnldsv merged commit 3ffd09d into master Sep 12, 2020
Christoph's Tasks automation moved this from TO INTEGRATE to DONE Sep 12, 2020
@skjnldsv skjnldsv deleted the fix/unified-search-indexed-result branch September 12, 2020 09:25
@rullzer rullzer mentioned this pull request Sep 14, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants