提交 72ec59bd 编写于 作者: 7 710leo

Support unassigned tenant search

上级 a07df519
......@@ -148,7 +148,9 @@ func HostGetsForAdmin(tenant, query, batch, field string, limit, offset int) ([]
func buildHostWhere(tenant, query, batch, field string) *xorm.Session {
session := DB["ams"].Table(new(Host)).OrderBy("ident")
if tenant != "" {
if tenant == "0" {
session = session.Where("tenant=?", "")
} else if tenant != "" {
session = session.Where("tenant=?", tenant)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册