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

API: $this->viewlessContentTypes should be a indexed array, not associative #1960

Merged
merged 1 commit into from
Oct 8, 2020

Conversation

simongroenewolt
Copy link
Contributor

I think this fixes #1953

… return an associative array, and this in turn messes up the parameter substitution in SQLParserUtils.expandListParameters(). Using values() instead of toArray() fixes this.

fixes bolt#1953
@LordSimal
Copy link
Contributor

I can confirm, that this fixes the issue from #1953
I tried it on my test instance.

Simon already explained the problem in the issue nicely.

Copy link
Member

@bobdenotter bobdenotter left a comment

Choose a reason for hiding this comment

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

Thank you, @simongroenewolt! Great catch! 👍

@bobdenotter bobdenotter merged commit ee6011e into bolt:master Oct 8, 2020
@bobdenotter bobdenotter changed the title $this->viewlessContentTypes should be a normal array. toArray() would… API: $this->viewlessContentTypes should be a indexed array, not associative Oct 8, 2020
@simongroenewolt simongroenewolt deleted the fix/api-error branch October 8, 2020 09:32
@sirTachyon
Copy link

Thanks for the bug fix! Much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when using api/contents endpoint while supplying two or more id's
4 participants