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 item display coordinator when a GroupId is provided #11714

Merged

Conversation

MikeAlhayek
Copy link
Member

@MikeAlhayek MikeAlhayek commented May 17, 2022

The ContentItemDisplayCoordinator has an issue where it was not rendering the parts on Edit when a groupId is provided. Explained in #11718

This PR calls shapeResult.OnGroup(context.GroupId); to ensure the shape is rendered with a groupId is provided fixed #11718

Also, slightly cleans up the code.

@MikeAlhayek MikeAlhayek mentioned this pull request May 17, 2022
22 tasks
@sebastienros
Copy link
Member

Hard to understand the changes since there are indentations changes that mess-up with the diff.

@MikeAlhayek
Copy link
Member Author

Hard to understand the changes since there are indentations changes that mess-up with the diff.

@sebastienros the main different is adding shapeResult.OnGroup(context.GroupId) and typePartShapeResult.OnGroup(groupId);

without honoring the GroupId from current context, the ShapeResult will not render the shape.

Other stuff is just code cleanup to reduce it

@sebastienros sebastienros merged commit cf04a0f into OrchardCMS:main May 19, 2022
@MikeAlhayek MikeAlhayek deleted the FixContentItemDisplayCoordinatorOnGroup branch May 19, 2022 18:14
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 building a ContentItem Editor using GroupId, the parts driver never get called in 1.4-preview
3 participants