diff --git a/app/coffee/modules/issues/detail.coffee b/app/coffee/modules/issues/detail.coffee index df1f964c..81e4c302 100644 --- a/app/coffee/modules/issues/detail.coffee +++ b/app/coffee/modules/issues/detail.coffee @@ -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: -> diff --git a/app/coffee/modules/tasks/detail.coffee b/app/coffee/modules/tasks/detail.coffee index 5b9941f5..58ed3475 100644 --- a/app/coffee/modules/tasks/detail.coffee +++ b/app/coffee/modules/tasks/detail.coffee @@ -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: -> diff --git a/app/coffee/modules/userstories/detail.coffee b/app/coffee/modules/userstories/detail.coffee index 71913231..6fa81a3b 100644 --- a/app/coffee/modules/userstories/detail.coffee +++ b/app/coffee/modules/userstories/detail.coffee @@ -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: ->