1
0

feat(project): add " - duplicate" suffix to duplicated projects title

This commit is contained in:
kolaente 2024-07-17 10:23:33 +02:00
parent 5e04abaa06
commit 092a65b025
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -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.