Copying DataStructure resets TargetField field in rules

I was trying to copy a data structure with data structure rules.

I was expecting to have everything copied.

Instead I’ve got a datastructure where all datastructure rule set items have ‘targetfield’ field empty.

Solved in Master 4257