From 5756da412b6baa03cdb33b11e7ff55e8fe4277a0 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 13 Apr 2024 22:39:40 +0200 Subject: [PATCH] fix(project): return full project after duplicating it --- 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 0ee15f8a1..4d5ba95cf 100644 --- a/pkg/models/project_duplicate.go +++ b/pkg/models/project_duplicate.go @@ -159,6 +159,7 @@ func (pd *ProjectDuplicate) Create(s *xorm.Session, doer web.Auth) (err error) { log.Debugf("Duplicated all link shares from project %d into %d", pd.ProjectID, pd.Project.ID) + err = pd.Project.ReadOne(s, doer) return }