case 4714 - duplicating a case gives the copy its own case number, open and created now

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 10:20:30 -07:00
parent d286650eaa
commit ac23f1f264

View File

@@ -222,6 +222,10 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
//case 4714: a duplicate is a new, open case: the server gives it the next case number when saved
this.obj.caseId = 0;
this.obj.closed = null;
this.obj.created = window.$gz.locale.nowUTC8601String();
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;