Vulnerabilities show opened issue if in the same file
Summary
When viewing a vulnerability, if there is an issue opened for a vulnerability in the same file with the same identifier, it will show an issue has been created for that vulnerability.
Steps to reproduce
In a project that has multiple vulnerabilities with the same identifier in the same file, open an issue for one of the vulnerabilities. Go back to the Security Dashboard, and open one of the other vulnerabilities with the same identifier in the same file. It will not show an associated issue on the dashboard, but it will show one has been created in the vulnerability.
Example Project
https://gitlab.com/jschafer/webgoat.net/-/security/dashboard/ https://gitlab.com/jschafer/webgoat.net/-/security/vulnerabilities/2815418 https://gitlab.com/jschafer/webgoat.net/-/security/vulnerabilities/2815416
What is the current bug behavior?
When viewing a vulnerability, if there is an issue opened for a vulnerability in the same file with the same identifier, it will show an issue has been created for that vulnerability. It will not show anything under related issues, but you will also not be able to create an issue for that vulnerability.
What is the expected correct behavior?
The vulnerability should not show that an issue has been created for it.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
Fix response on the backend not to include notes for the wrong vulnerabilty.