fix(views): correctly fetch project when fetching tasks
This commit is contained in:
parent
7866543198
commit
6913334b17
@ -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) {
|
func GetProjectViewByIDAndProject(s *xorm.Session, id, projectID int64) (view *ProjectView, err error) {
|
||||||
|
view = &ProjectView{}
|
||||||
exists, err := s.
|
exists, err := s.
|
||||||
Where("id = ? AND project_id = ?", id, projectID).
|
Where("id = ? AND project_id = ?", id, projectID).
|
||||||
NoAutoCondition().
|
NoAutoCondition().
|
||||||
|
Loading…
x
Reference in New Issue
Block a user