]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9786 Closed issues retain their line
authorStas Vilchik <stas.vilchik@sonarsource.com>
Thu, 28 Sep 2017 13:25:35 +0000 (15:25 +0200)
committerStas Vilchik <stas.vilchik@sonarsource.com>
Mon, 2 Oct 2017 13:12:06 +0000 (15:12 +0200)
server/sonar-web/src/main/js/helpers/issues.ts

index 34cef95d7c68ce33430226f64b7df086b0218d82..cce6a2adc494b6d856bb68064c0c2d5f525d5e58 100644 (file)
@@ -107,8 +107,10 @@ function injectCommentsRelational(issue: RawIssue, users?: User[]) {
   return { comments };
 }
 
-function prepareClosed(issue: RawIssue): { flows?: undefined } {
-  return issue.status === 'CLOSED' ? { flows: undefined } : {};
+function prepareClosed(issue: RawIssue) {
+  return issue.status === 'CLOSED'
+    ? { flows: undefined, line: undefined, textRange: undefined }
+    : {};
 }
 
 function ensureTextRange(issue: RawIssue): { textRange?: TextRange } {