Skip to content

[6.x] Fix pivot restoration - #35218

Merged
taylorotwell merged 1 commit into
6.xfrom
fix-pivot-restoration
Nov 13, 2020
Merged

taylorotwell merged 1 commit into
6.xfrom
fix-pivot-restoration

Conversation

@driesvints

Copy link
Copy Markdown
Member

This fixes an issue where it might be that an array with differently indexed records could be passed to any of the newQueryForCollectionRestoration methods which would conflict with the [0] retrieval for the first record. An alternative fix would be to use Arr::first instead without resetting the array keys.

Fixes #35210

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.

2 participants