-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Category
- Question
- [x ] Bug
- Enhancement
Expected or Desired Behavior
When I add content types via addContentType subaction to a library I only want to get those site columns assigned to the content type that are defined in the createContentType action.
Observed Behavior
But unfortunately when I have a look at my library, all site columns, that I've added to the library where assigned to the content type automatically. Thats really annoying as I use some hidden site columns for data handling that shouldn't be visible to the end-user.
Steps to Reproduce
Define a content type with the createContentType action. Add it to a library via addContentType subaction. After that use the addSiteColumn subaction to add some more site columns, that are not a part of the content type previously defined.
Invoke the script and have a look at the libraries settings > columns section. As you can see, all columns are now part of the content type even if they were not defined to be so.