]> source.dussan.org Git - sonarqube.git/commitdiff
Fix bug with showing issue details after issue action
authorStas Vilchik <vilchiks@gmail.com>
Mon, 12 Jan 2015 13:17:35 +0000 (14:17 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 12 Jan 2015 13:17:42 +0000 (14:17 +0100)
server/sonar-web/src/main/coffee/issue/issue-view.coffee
server/sonar-web/src/main/coffee/issues/workspace-list-item-view.coffee

index de94e25726a756c0b8d965fb8bab902693b66c80..669179a6648649209f16671fad40544e7394a77f 100644 (file)
@@ -78,8 +78,9 @@ define [
 
     resetIssue: (options, p) ->
       key = @model.get 'key'
+      componentUuid = @model.get 'componentUuid'
       @model.clear silent: true
-      @model.set { key: key }, { silent: true }
+      @model.set { key: key, componentUuid: componentUuid }, { silent: true }
       @model.fetch(options)
       .done =>
         @trigger 'reset'
index 2e91d9053d3dd0e6db5b2489a475473f5698044a..914cb29317fcd60d875e7bca5fe0aef97e90e264 100644 (file)
@@ -35,9 +35,10 @@ define [
 
     resetIssue: (options, p) ->
       key = @model.get 'key'
+      componentUuid = @model.get 'componentUuid'
       index = @model.get 'index'
       @model.clear silent: true
-      @model.set { key: key, index: index }, { silent: true }
+      @model.set { key: key, componentUuid: componentUuid, index: index }, { silent: true }
       @model.fetch(options)
       .done =>
         @trigger 'reset'