Only first instance of a library gets common fields when creating content

Description

Acceptance criteria

  • Fix common fields so all instances of a library appropriately gets their common fields populated

Steps to reproduce

  1. Create a Speak the words Set

  2. Add a Speak the Words for a total of 2 in the list

  3. Save content

  4. Observe JavaScript error on view because the second Speak the Words instance does not have any common fields

 

Background

Speak the words set is crashing when creating new content with more than one Speak the Words content within it.

NB: This happens in all content types that may contain multiple sub-content, such as Column with True/False as well, but is not observable because most common fields have defaults in code when common fields are not defined, but this means that common fields values will not work for any other than the first instance of the content type.

 

Environment

None

Acceptance Criteria

None

Status

Assignee

Thomas Marstrander

Reporter

Thomas Marstrander

Labels

None

Funding

None

Code reviewer

Frode Petterson

Released

None

Time tracking

0m

Fix versions

Sprint

None

Priority

High