Description
After moving issues between milestones the progress of a milestone may be incorrect.
How to reproduce
- Create new project
- Create milestone
milestone1
- Create issue
issue1 and add it to milestone milestone1
- Create issue
issue2 and add it to milestone milestone1
- Close
issue1
- Create milestone
milestone2
- Move
issue2 to milestone2
- Create issue
issue3 and add it to milestone milestone1
Actual
milestone1 contains 2 issues. One is open, the other one is closed. Progress is 100%.
Expected
milestone1 contains 2 issues. One is open, the other one is closed. Progress is 50%.
Additional observation
The progress will be updated to the correct value if the name of milestone milestone1 is edited and saved
Screenshots

Git version: Gitea 1.14 at https://codeberg.org. I don't have any knowledge about the details of this installation.
Can you reproduce the bug at https://try.gitea.io:
Description
After moving issues between milestones the progress of a milestone may be incorrect.
How to reproduce
milestone1issue1and add it to milestonemilestone1issue2and add it to milestonemilestone1issue1milestone2issue2tomilestone2issue3and add it to milestonemilestone1Actual
milestone1contains 2 issues. One is open, the other one is closed. Progress is 100%.Expected
milestone1contains 2 issues. One is open, the other one is closed. Progress is 50%.Additional observation
The progress will be updated to the correct value if the name of milestone
milestone1is edited and savedScreenshots