Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
ContentRepository::AddAllowedChildTypes removes all existing and all but last item in contentTypes #512
Actual behavior: Allowed content types on content is only the last element in contentTypes.
Expected behavior: Allowed content types on content are a union of contentTypes and pre-existing allowed contentTypes on content
Bug applies for all supported content types (eg DocumentLibrary) and is easily reproducible.
This code patches behavior (brute force):
The root cause of the problem is that you for each contentType end up in: