fix #1074: duplicate template

Previously, duplicating wouldn't work correctly and overwrite the
existing task. By explicitly setting the item's ID to null after copying
the data, we avoid this behaviour.
This commit is contained in:
Pierpaolo Frasa 2024-03-21 22:01:37 +01:00
parent d3c81c6992
commit 6162408b3d

View File

@ -431,6 +431,7 @@ export default {
url: `/api/project/${this.projectId}/templates/${this.sourceItemId}`,
responseType: 'json',
})).data;
this.item.id = null;
}
this.advancedOptions = this.item.arguments != null || this.item.allow_override_args_in_task;