fix(be): bug with filterging view templates

This commit is contained in:
Denis Gukov 2021-10-28 15:04:50 +05:00
parent 3514323453
commit f9b842e5da

View File

@ -95,7 +95,7 @@ func (d *SqlDb) getTemplates(projectID int, viewID *int, params db.RetrieveQuery
Where("pt.removed = false")
if viewID != nil {
q.Where("pt.view_id", *viewID)
q = q.Where("pt.view_id=?", *viewID)
}
order := "ASC"