mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
This reverts commit 007cd144a9 from #44175.
This commit is contained in:
committed by
GitHub
parent
cb09162cde
commit
62b69a0b90
@@ -87,16 +87,10 @@ func (f TitleFilter) Where() (string, []interface{}) {
|
||||
}
|
||||
|
||||
type FolderFilter struct {
|
||||
Dialect migrator.Dialect
|
||||
IDs []int64
|
||||
IDs []int64
|
||||
}
|
||||
|
||||
func (f FolderFilter) Where() (string, []interface{}) {
|
||||
if len(f.IDs) == 1 && f.IDs[0] == 0 {
|
||||
sql := fmt.Sprintf("dashboard.folder_id = 0 AND dashboard.is_folder = %s", f.Dialect.BooleanStr(false))
|
||||
return sql, []interface{}{}
|
||||
}
|
||||
|
||||
return sqlIDin("dashboard.folder_id", f.IDs)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user