Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When using cck content_multigroup and i18nsync, problems arise when creating translations because some nodereference fields can be null and need to remain null. But instead they are being disregarded.
For example, on my source node I have:
Content Multigroups:
noderef_field: (empty)
text_field: A
noderef_field: 1
text_field: B
noderef_field: (empty)
text_field: C
noderef_field: 2
text_field: D
When I create a synched translation I end up with:
Content Multigroups:
noderef_field: 1
text_field: A
noderef_field: 2
text_field: B
noderef_field: (empty)
text_field: C
noderef_field: (empty)
text_field: D
Because i18nsync_node_translation_nodereference_field() doesn't account for the empty node references, the deltas become incorrect and out of sync, putting the values into the wrong mulitgroup.
Comment | File | Size | Author |
---|---|---|---|
#2 | i18nsync-nodereference-empty-fields-2584181-2.patch | 888 bytes | sheise |
Comments
Comment #2
sheise CreditAttribution: sheise commentedComment #3
joseph.olstadsee my comment in:
#419200: Interface language should not affect the node reference value