Problem/Motivation

The StrawSelection class contains a bug which creates duplicate terms when multiple new terms are created as child of a non-existent term.

I have created a taxonomy vocabulary and an entity reference field for the taxonomy which allows unlimited values and option 'Create referenced entities if they don't already exist' enabled.
Once I update or create a node and add two fields as child of a non-existent term, the non-existent term is created twice.

Example:
My taxonomy vocabulary list is empty. I add two terms to the node: "Test >> Test >> A" and "Test >> Test >> B". Once I save the node, the following terms are created:

Test
  |---- Test
             |---- A
Test
  |---- Test
             |---- B

The expected result is:

Test
  |---- Test
             |---- A
             |---- B

Comments

sjerdo created an issue. See original summary.

sjerdo’s picture

Issue summary: View changes
camprandall’s picture

Good catch! We'll take care of that.

Anonymous’s picture

Assigned: Unassigned »

  • JKerschner committed 1eb74cb on 8.x-1.x
    Issue #2992316 by sjerdo, JKerschner: When creating multiple nested...
Anonymous’s picture

Status: Active » Fixed

I've fixed this issue and a new release which includes it should be available shortly.

Anonymous’s picture

Assigned: » Unassigned
Anonymous’s picture

Note that my fix for this bug created a new one, #2992666. That bug has now also been fixed. Everyone is encourage to upgrade straight to 8.x-1.2.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.