Patch for main-level repository
Here is a patch for High-level repository, ref to Issue #2120.
Here how it works:
If a changeset refers to an Issue that has not a linked repository, it looks for an upper lever project, to see if there is a repository. If it has, changeset is linked to that Issue;
If a project has no repository linked and is a subproject, it looks for an upper level project. It there is there, it uses that repository so if ypu click on revisin number linked to related Issue, it shows correctly changes made.
Hope this helps,