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

[7.x] Refactor the fieldtype model selector #592

Merged
merged 7 commits into from
Sep 4, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request does some refactoring around the Models Selector in Runway's built-in fieldtypes.

Instead of returning arrays from the getIndexItems method, it'll return the models, which will then be transformed by JSON resources. This follows how Statamic works with the Entries fieldtype.

It'll also pull the columns for the models selector from the user's preferences, if they have any set, rather than always using the default listable columns from the resource's blueprint.

Fixes #588.

@duncanmcclean duncanmcclean merged commit 8063b92 into 7.x Sep 4, 2024
11 checks passed
@duncanmcclean duncanmcclean deleted the fix/fieldtype-model-selector branch September 4, 2024 15:34
Copy link

github-actions bot commented Sep 5, 2024

Released as part of v7.9.0.

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.

Field value not visible while attaching related resource
1 participant