Github user pmouawad commented on the issue:
https://github.com/apache/jmeter/pull/300
It seems the creation order is important to reproduce:
First create Thread Group 1, add to it a Debug Sampler1
Second create Thread Group 2, add to it a Debug Sampler2
Add User Defined Variables, move it before Thread Group 1
Unfold TG2 and fold TG1
Duplicate User Defined Variables
Play with undo, redo it is broken, it seems the element moving is not
correctly handled.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---