forked from gitea/gitea

Backport #25880 by @yp05327 You can confirm this issue in: https://try.gitea.io/yp05327/testrepo/milestones?state=open&q=a There's no milestone, but the count is 1.  Co-authored-by: yp05327 <576951401@qq.com>