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: NestedInputBuilder doesn't work with nested '*' #536

Closed

Conversation

MasonD
Copy link
Contributor

@MasonD MasonD commented May 25, 2023

Addresses #535

Copy link
Member

@GuySartorelli GuySartorelli 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 for this PR, this is an excellent contribution!

This bug fix should be applied to the CMS 4 compatible version of the module as well. Please retarget this PR to the 4.3 branch. You'll need to reset your PR branch so that it doesn't carry over commits from 5.

if (isset($fields[Schema::ALL]) && $fields[Schema::ALL]) {
unset($fields[Schema::ALL]);
$fields = array_merge($fields, $this->buildAllFieldsConfig($type));
}
foreach ($fields as $fieldName => $data) {
if ($fieldName === Schema::ALL) {
Copy link
Member

@GuySartorelli GuySartorelli Jun 12, 2023

Choose a reason for hiding this comment

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

This if statement (if ($fieldName === Schema::ALL) { inside the foreach loop) is dead code since you've added unset($fields[Schema::ALL]); above. Please remove it.

@GuySartorelli
Copy link
Member

I don't have permissions to directly modify this PR so it has now been superceded by #538 which includes the requested changes

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.

3 participants