Fix repository issues pagination bug when there are more than one label filter (#9512)
This commit is contained in:
parent
1ea447aedf
commit
ed67bbe444
4 changed files with 13 additions and 4 deletions
|
@ -269,6 +269,14 @@ func NewFuncMap() []template.FuncMap {
|
|||
return ""
|
||||
}
|
||||
},
|
||||
"contain": func(s []int64, id int64) bool {
|
||||
for i := 0; i < len(s); i++ {
|
||||
if s[i] == id {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
},
|
||||
}}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue