From 092a65b0256cd0247d491c50a1cc9a89e01dd64a Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 17 Jul 2024 10:23:33 +0200 Subject: [PATCH] feat(project): add " - duplicate" suffix to duplicated projects title --- pkg/models/project_duplicate.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/models/project_duplicate.go b/pkg/models/project_duplicate.go index 4d5ba95cf..dba12ebb5 100644 --- a/pkg/models/project_duplicate.go +++ b/pkg/models/project_duplicate.go @@ -81,6 +81,7 @@ func (pd *ProjectDuplicate) Create(s *xorm.Session, doer web.Auth) (err error) { pd.Project.ParentProjectID = pd.ParentProjectID // Set the owner to the current user pd.Project.OwnerID = doer.GetID() + pd.Project.Title += " - duplicate" err = CreateProject(s, pd.Project, doer, false, false) if err != nil { // If there is no available unique project identifier, just reset it.