Skip to content

Site columns added to a library are automatically added to list content type #47

@ingrid-schiele-fnt

Description

@ingrid-schiele-fnt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions