From e369d785046b07b6d0e867619d94a67dc2e96696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Csord=C3=A1s?= Date: Thu, 25 Jan 2018 13:55:16 +0100 Subject: [PATCH] Fix clicking on a uniqued bug If a bug can be found on different files, uniquing will show only one file. If the user clicks on this bug, we should get the report by setting the file path filter. --- www/scripts/codecheckerviewer/ListOfBugs.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/scripts/codecheckerviewer/ListOfBugs.js b/www/scripts/codecheckerviewer/ListOfBugs.js index 302226be1f..c47814c586 100644 --- a/www/scripts/codecheckerviewer/ListOfBugs.js +++ b/www/scripts/codecheckerviewer/ListOfBugs.js @@ -465,6 +465,9 @@ function (declare, dom, style, Deferred, ObjectStore, Store, QueryResults, reportFilter.reportHash = [reportHash]; reportFilter.isUnique = false; + if (reportData) + reportFilter.filepath = ['*' + reportData.checkedFile]; + reports = CC_SERVICE.getRunResults(runResultParam.runIds, CC_OBJECTS.MAX_QUERY_SIZE, 0, null, reportFilter, runResultParam.cmpData);