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 content types fields dependency #12492

Merged
merged 9 commits into from
Oct 20, 2022

Conversation

MikeAlhayek
Copy link
Member

@MikeAlhayek MikeAlhayek commented Sep 24, 2022

Fix #12488

The button shows up when at least 1 field definition is available.
image

A field was previously added to the content items. but there are no more field definition registred, so we allow removing previously attached fields but there is no Add Fields button

image

There is no content fields available, so we hide the button
image

@MikeAlhayek
Copy link
Member Author

@jtkech are you okay with me merging this PR?

Copy link
Member

@hishamco hishamco left a comment

Choose a reason for hiding this comment

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

LGTM, could you please provide a screenshots?

@MikeAlhayek
Copy link
Member Author

@hishamco I updated the PR with screenshots. I am checking out a different PR, if you want to do more testing, please fork this PR and test it out or evaluate it locally. Not planning any additional changes, unless someone spots a bug that I missed.

@MikeAlhayek MikeAlhayek merged commit dbf410c into OrchardCMS:main Oct 20, 2022
@MikeAlhayek MikeAlhayek deleted the UpdateContentTypesUI branch December 28, 2022 01:46
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.

When using ContentTypes without any fields, the "Fields" section should not show up
3 participants