-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix content types fields dependency #12492
Conversation
… field definitions, but not allow editing of an old (attached) field
@jtkech are you okay with me merging this PR? |
src/OrchardCore.Modules/OrchardCore.ContentTypes/Controllers/AdminController.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentTypes/Controllers/AdminController.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentTypes/Controllers/AdminController.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/Admin/Edit.cshtml
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/Admin/Edit.cshtml
Outdated
Show resolved
Hide resolved
…dminController.cs Co-authored-by: Hisham Bin Ateya <[email protected]>
…dminController.cs Co-authored-by: Hisham Bin Ateya <[email protected]>
…dminController.cs Co-authored-by: Hisham Bin Ateya <[email protected]>
…dit.cshtml Co-authored-by: Hisham Bin Ateya <[email protected]>
There was a problem hiding this 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?
@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. |
Fix #12488
The button shows up when at least 1 field definition is available.
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
There is no content fields available, so we hide the button