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 broken dependsOn support introduced by Nova 4.7 #25

Merged
merged 1 commit into from
Jun 19, 2022

Conversation

dmason30
Copy link
Contributor

@dmason30 dmason30 commented Jun 8, 2022

This PR recreates build using latest DependentFormField mixin which is Nova 4.8.0 at the time of creation.

As you may know when dependsOn is triggered it sends a request to the nova api.

4.7.0 added a component field to the request which needs to contain the component name.

Ths is required for the API to correctly resolve the field and call the required dependsOn callbacks.

If you search the diff on this PR for this.field.component you will see its missing in the old field.js exists in the new field.js.

Before
update-fields?editing=true&editMode=update&field=collection_hours

After
update-fields?editing=true&editMode=update&field=collection_hours&component=nova-opening-hours-field

@sadekd sadekd merged commit eb2bc94 into sadekd:master Jun 19, 2022
@dmason30 dmason30 deleted the nova-4.7-depends-on-fix branch July 14, 2022 10:11
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