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
|---- BThe expected result is:
Test
|---- Test
|---- A
|---- B
Comments
Comment #2
sjerdoComment #3
camprandall commentedGood catch! We'll take care of that.
Comment #4
Anonymous (not verified) commentedComment #6
Anonymous (not verified) commentedI've fixed this issue and a new release which includes it should be available shortly.
Comment #7
Anonymous (not verified) commentedComment #8
Anonymous (not verified) commentedNote 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.