feat(project): add " - duplicate" suffix to duplicated projects title
This commit is contained in:
parent
5e04abaa06
commit
092a65b025
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user