Select2 for relations: previous content types are added to add new

Description

Steps to reproduce

  • Add two relations to a content type, each with one (different) target

  • Edit an item of that content type

  • Result:

The bug

  • For the second relation the "Add new" drop down also contains the target content type of the first relation. This is incorrect.

  • The "Add new" should be a drop down only if it has multiple target content types.

Deployment actions

None

Technical tasks

None

Status

Assignee

Unassigned

Reporter

Marijn Otte

Product owner

Marijn Otte

OTM project ID

None

Client

Integrated Marijn

Plan date

None

Developer

Johan Liefers

Code reviewer

Johnny Borg

Max. hours

None

Error message

None

Follow up date

None

Switches

None

Refiner

None

Story Points

2

Time tracking

3h 30m

Fix versions

Priority

Major