You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/1ab476dc-2f9b-4c85-9e87-105fc73af1ee) After: ![image](https://github.com/go-gitea/gitea/assets/18380374/786f984d-5c27-4eff-b3d9-159f68034ce4) This issue comes from the change in #25468. `LoadProject` will always return at least one record, so we use `ProjectID` to check whether an issue is linked to a project in the old code. As other `issue.LoadXXX` functions, we need to check the return value from `xorm.Session.Get`. In recent unit tests, we only test `issueList.LoadAttributes()` but don't test `issue.LoadAttributes()`. So I added a new test for `issue.LoadAttributes()` in this PR. --------- Co-authored-by: Denys Konovalov <privat@denyskon.de> |
1 year ago | |
---|---|---|
.. | ||
actions | 1 year ago | |
setting | 1 year ago | |
activity.go | 2 years ago | |
attachment.go | 1 year ago | |
blame.go | 1 year ago | |
branch.go | 1 year ago | |
cherry_pick.go | 1 year ago | |
commit.go | 1 year ago | |
compare.go | 1 year ago | |
download.go | 1 year ago | |
editor.go | 1 year ago | |
editor_test.go | 1 year ago | |
find.go | 2 years ago | |
helper.go | 1 year ago | |
helper_test.go | 1 year ago | |
http.go | 1 year ago | |
http_test.go | 2 years ago | |
issue.go | 1 year ago | |
issue_content_history.go | 1 year ago | |
issue_dependency.go | 1 year ago | |
issue_label.go | 1 year ago | |
issue_label_test.go | 1 year ago | |
issue_lock.go | 1 year ago | |
issue_pin.go | 1 year ago | |
issue_stopwatch.go | 1 year ago | |
issue_test.go | 2 years ago | |
issue_timetrack.go | 1 year ago | |
issue_watch.go | 1 year ago | |
main_test.go | 2 years ago | |
middlewares.go | 1 year ago | |
migrate.go | 1 year ago | |
milestone.go | 1 year ago | |
packages.go | 2 years ago | |
patch.go | 1 year ago | |
projects.go | 1 year ago | |
projects_test.go | 1 year ago | |
pull.go | 1 year ago | |
pull_review.go | 1 year ago | |
release.go | 1 year ago | |
release_test.go | 1 year ago | |
render.go | 2 years ago | |
repo.go | 1 year ago | |
search.go | 1 year ago | |
topic.go | 1 year ago | |
treelist.go | 2 years ago | |
view.go | 1 year ago | |
view_test.go | 2 years ago | |
wiki.go | 1 year ago | |
wiki_test.go | 1 year ago |