fix(views): correctly fetch project when fetching tasks

This commit is contained in:
kolaente 2024-03-15 22:23:38 +01:00
parent 7866543198
commit 6913334b17
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ func (p *ProjectView) Update(s *xorm.Session, _ web.Auth) (err error) {
}
func GetProjectViewByIDAndProject(s *xorm.Session, id, projectID int64) (view *ProjectView, err error) {
view = &ProjectView{}
exists, err := s.
Where("id = ? AND project_id = ?", id, projectID).
NoAutoCondition().