]> source.dussan.org Git - gitea.git/commit
fix: {show,link to} proper PR on kanban board ref (#15004)
authorwULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf <61180606+wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf@users.noreply.github.com>
Tue, 16 Mar 2021 15:42:25 +0000 (16:42 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Mar 2021 15:42:25 +0000 (15:42 +0000)
commitd2dc182dcda4cadd3da0d1fc032f392f94b3ec7b
treee6b1aead0b0d68f8c8eb168f6ff78a45012bd9f1
parentab70b2f4e4be3fb48a7f6a7081ac70f301aa18aa
fix: {show,link to} proper PR on kanban board ref (#15004)

the issue was that PR references in kanban boards were being generated
using `.ID` instead of `.Index`, which led to constructing incorrect
links to possibly non-existent {PR,issue}s and following that to showing
nonsensical values in the boards.

kudos also go to @zeripath for pointing at the file to fix.

Signed-off-by: wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf <a_mirre@utb.cz>
Co-authored-by: zeripath <art27@cantab.net>
templates/repo/projects/view.tmpl