Closed (fixed)
Project:
Field collection
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 May 2016 at 17:12 UTC
Updated:
14 Jun 2016 at 13:44 UTC
Jump to comment: Most recent
Comments
Comment #2
joseph.olstadHi @jmuzz, I just retested on my local dev with simpletest using an older build and patch and I get what looks like similar test results that HEAD is getting, same line numbers too.
the assertion message from line 1195 field_collection.test says:
Value NULL is equal to value 'Translatable DE Mod'.
This doesn't really make much sense to me, is this what we are asserting? That Null is equal to value 'Translatable DE Mod.'?
Comment #3
joseph.olstadhere's the code block from field_collection.test
message we see:
Value NULL is equal to value 'Translatable DE Mod'.
The last assert in the code block above is line 1195 of field_collection.test
Comment #5
jmuzz commentedI found a couple of causes:
Field collection item entities using entity translation don't appear to work correctly in a entity metadata wrapper. I changed it to use longhand fields, but this is a remaining bug.
There seemed to be the idea that field collection items should be deleted when a node's translation is deleted. This is incorrect because the same field collection items will be used for each of a node's translations. It's just their language specific field data that should be deleted with its host's translations.
Comment #6
jmuzz commentedFollowup.