Skip to content

fix for issue 1230.#1249

Open
wuxiaojun514 wants to merge 1 commit into
pnp:devfrom
wuxiaojun514:hotfix-for-#1230
Open

fix for issue 1230.#1249
wuxiaojun514 wants to merge 1 commit into
pnp:devfrom
wuxiaojun514:hotfix-for-#1230

Conversation

@wuxiaojun514

Copy link
Copy Markdown

Hotfix for issue #1230

Problem

Currently I find an issue in list provisioning:

If the list has custom content type which contains hidden site column , the exported template won't have this field ref . See detail in #1230

It will become a problem if its site level content type doesn't have this field (only list level content type has this field ), then this field won't be provisioned.

My hotfix

I checked the related code and found that this module is quite old and stable (It doesn't have too much change compared with its initial version)

It seems that the first author want to exclude the system fields (system fields won't be added into content type) in the list provisioning.

Now contentTypeFields will add all the field link in the list content types no matter whether it is hidden or not, to avoid this issue.

Previously it will exclude the field ref in the list instance of site template if this field is set as hidden in content type.
Then this field (field ref to site column) cannot be provisioned correctly if site level content type doesn't have this field
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.

1 participant