mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
fix(be): bug with filterging view templates
This commit is contained in:
parent
3514323453
commit
f9b842e5da
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user