Skip to content

Commit

Permalink
Preserve numeric keys in the Array fieldtype (#3284)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurperton authored Feb 22, 2021
1 parent 99f5c34 commit 1486b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fieldtypes/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function configFieldItems(): array

public function preProcess($data)
{
return array_merge($this->blankKeyed(), $data ?? []);
return array_replace($this->blankKeyed(), $data ?? []);
}

public function preProcessConfig($data)
Expand Down

0 comments on commit 1486b10

Please sign in to comment.