Env variable modified on duplicate task
Closed this issue · 1 comments
angrykoala commented
Description
In some cases, when editing the env variables of a task, the same env variable of a different task is changed as well
Steps to reproduce
- Create a task in a suite with an env variable set
- Save
- Duplicate task
- Edit original task env variable
- Duplicate task is edited as well
Workaround
By closing and re-opening gaucho the issue no longer happens
angrykoala commented
This is probably caused by the "duplicate task" copying the object reference to the new task instead of cloning it.
After closing and reopening, the task are no longer references to the same object (as they were de-serialized), explaining the workaround