mirror of
1
Fork 0
forgejo/routers
Earl Warren 9f1302f685 fix(api): issue state change is not idempotent
The PATCH if issue & pull request switched to use the service
functions instead. However, the service function changing the state is
not idempotent. Instead of doing nothing which changing from open to
open or close to close, it will fail with an error like:

 Issue [2472] 0 was already closed

Regression of: 6a4bc0289d

Fixes: https://codeberg.org/forgejo/forgejo/issues/4686
(cherry picked from commit e9e3b8c0f3)
2024-07-25 14:21:00 +00:00
..
api fix(api): issue state change is not idempotent 2024-07-25 14:21:00 +00:00
common Use relative links for commits, mentions, and issues in markdown (#29427) 2024-03-20 08:46:28 +01:00
install Always load or generate oauth2 jwt secret (#30942) 2024-05-24 15:15:07 +02:00
private fix(hook): repo admins are wrongly denied the right to force merge 2024-06-02 22:05:16 +02:00
utils Improve user search display name (#29002) 2024-02-01 17:10:16 +00:00
web [BUG] Fix panic on too high page number 2024-07-22 14:31:05 +02:00
init.go s/Gitea/Forgejo in various log messages and comments 2024-04-22 14:41:17 +00:00