Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Fixed incorrect implementation of content type id best match #2582

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

jensotto
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
New sample? no
Related issues? N/A

What's in this Pull Request?

Previous implementation of content type id BestMatch was incorrect. It did not check for a common parent and could therefore end up with not finding av best match even though a content type sharing the same parent existed. For example if an Item list content type on a list with id 0x010100C284F907FFBF7D45B2B102E254551281 and an Item list content type on a different list with id 0x010100CE36B052C59F4C46ADD8ADA2F8668F3D the previous implementation would not find any match. It should identify 0x010100CE36B052C59F4C46ADD8ADA2F8668F3D as the best match for 0x010100C284F907FFBF7D45B2B102E254551281.

Implementation of BestMatch in this PR has been taken from the server side implementation of the same functionality.

@jensotto jensotto changed the base branch from master to dev March 13, 2020 14:49
jansenbe added a commit that referenced this pull request Mar 16, 2020
@jensotto
Copy link
Contributor Author

@PaoloPia @jansenbe Can you please complete this PR before this project is shut down. Will this be included in PnP Framework?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant