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 Structure items order by Alias - broken when Export On Save #44

Merged
merged 1 commit into from
Sep 23, 2019
Merged

Fix Structure items order by Alias - broken when Export On Save #44

merged 1 commit into from
Sep 23, 2019

Conversation

JoseMarcenaro
Copy link
Contributor

When a full export is manually triggered, the <Structure> children are ordered by Alias as designed.
But when an Export on Save is triggered, the same code fails to sort the items.

The reason for that is that in this line:

foreach (var allowedType in item.AllowedContentTypes.OrderBy(x => x.Alias))

...the x.Alias property is null when called from Export On Save.

@KevinJump KevinJump self-requested a review September 23, 2019 17:38
@JoseMarcenaro
Copy link
Contributor Author

The effect of this is that the serialized output in one case and the other is quite different, producing multiple (fake) differences in the source control repo.

@KevinJump
Copy link
Owner

yeah, it looks fine :) - just seeing if I can fix the automated checks (Azure DevOps permissions :( )

@KevinJump KevinJump merged commit a33faa0 into KevinJump:v8/8.2 Sep 23, 2019
@JoseMarcenaro
Copy link
Contributor Author

Sure. I will delete my fork now. Thanks again.

KevinJump pushed a commit that referenced this pull request Sep 23, 2019
@KevinJump KevinJump added this to the 8.2.1 - Patche Release milestone Sep 23, 2019
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