Import changes groupfield.Problem
Importing data for item type with a groupfield gives unexpected results.
I import changed items for itemtype “Evenement” . The CSV file has 4 fields : id, catid, title and text to update the content for field text.
Import for those fields seems OK so far. However…..
Importing data in those fields also changes content in repeating group. This is a major bug in my opinion. In Itemtype “Evenement” I have a repeating groupfield “Persoonrol”. This groupfield has 4 fields
- Fk-Persoon (fieldtype Relation). Only for related “Persoon” items in direct ancestors and their siblings. This field can be empty.
- Not documented persoon (fieldtype Text). The field is used for names only for husbands and wifes of siblings from ancestors or parents of those husbands and wifes. This field can be empty.
- Role (fieldtype Select - like child, father, mother, husband, wife)
- Remark (fieldtype Textarea – for additional remarks)
For occurences where Fk-Persoon is empty the Fk-persoon is added from the next occurence. Original data example in repeating group for a mariage:Persoon 7324 is sibling of ancestor, persoon 2456 is mother and persoon 8754 is father of ancestor (and sibling)Occurence 1 Fk-persoon : null, Not documented persoon: “Mary X”, Role: Wife Occurence 2 Fk-persoon : 7324, Not documented persoon: null, Role: HusbandOccurence 3 Fk-persoon : null , Not documented persoon: “Marysmother X”, Role: Mother wifeOccurence 4 Fk-persoon : null , Not documented persoon: “Marysfather X”, Role: Father wifeOccurence 5 Fk-persoon : 2456, Not documented persoon: null, Role: Mother husbandOccurence 6 Fk-persoon : 8754, Not documented persoon: null, Role: Father husband After importOccurence 1 Fk-persoon : 7324, Not documented persoon: “Mary X”, Role: Wife Occurence 2 Fk-persoon : 2456, Not documented persoon: “Marysmother X”, Role: HusbandOccurence 3 Fk-persoon : 8754, , Not documented persoon: “Marysfather X”, Role: Mother wifeOccurence 4 Fk-persoon : null , Not documented persoon: null, Role: Father wifeOccurence 5 Fk-persoon : null, Not documented persoon: null, Role: Mother husbandOccurence 6 Fk-persoon : null, Not documented persoon: null, Role: Father husband I expect this problem will not be solved very easy. Maybe someone has a workaround.