Fixing historic

stable
Alejandro Alonso 2014-08-28 14:55:54 +02:00
parent 0c4f276e14
commit a34fe3c45e
3 changed files with 6 additions and 6 deletions

View File

@ -102,7 +102,7 @@ class IssueDetailController extends mixOf(taiga.Controller, taiga.PageMixin, tai
loadHistory: =>
return @rs.issues.history(@scope.issueId).then (history) =>
_.each history.results, (historyResult) ->
_.each history, (historyResult) ->
#If description was modified take only the description_html field
if historyResult.values_diff.description?
historyResult.values_diff.description = historyResult.values_diff.description_diff
@ -110,7 +110,7 @@ class IssueDetailController extends mixOf(taiga.Controller, taiga.PageMixin, tai
delete historyResult.values_diff.description_html
delete historyResult.values_diff.description_diff
@scope.history = history.results
@scope.history = history
@scope.comments = _.filter(history, (item) -> item.comment != "")
loadInitialData: ->

View File

@ -93,7 +93,7 @@ class TaskDetailController extends mixOf(taiga.Controller, taiga.PageMixin, taig
loadHistory: =>
return @rs.tasks.history(@scope.taskId).then (history) =>
_.each history.results, (historyResult) ->
_.each history, (historyResult) ->
#If description was modified take only the description_html field
if historyResult.values_diff.description?
historyResult.values_diff.description = historyResult.values_diff.description_diff
@ -104,7 +104,7 @@ class TaskDetailController extends mixOf(taiga.Controller, taiga.PageMixin, taig
delete historyResult.values_diff.description_html
delete historyResult.values_diff.description_diff
@scope.history = history.results
@scope.history = history
@scope.comments = _.filter(history, (historyEntry) -> historyEntry.comment != "")
loadInitialData: ->

View File

@ -101,7 +101,7 @@ class UserStoryDetailController extends mixOf(taiga.Controller, taiga.PageMixin,
loadHistory: =>
return @rs.userstories.history(@scope.usId).then (history) =>
_.each history.results, (historyResult) ->
_.each history, (historyResult) ->
#If description was modified take only the description_html field
if historyResult.values_diff.description?
historyResult.values_diff.description = historyResult.values_diff.description_diff
@ -115,7 +115,7 @@ class UserStoryDetailController extends mixOf(taiga.Controller, taiga.PageMixin,
delete historyResult.values_diff.description_html
delete historyResult.values_diff.description_diff
@scope.history = history.results
@scope.history = history
@scope.comments = _.filter(history, (historyEntry) -> historyEntry.comment != "")
loadInitialData: ->