fix keys for generate issues filters
parent
9a9e141365
commit
7b2c266eea
|
@ -193,7 +193,7 @@ class IssuesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
|
||||||
customFiltersRaw = result[1]
|
customFiltersRaw = result[1]
|
||||||
dataCollection = {}
|
dataCollection = {}
|
||||||
|
|
||||||
dataCollection.statuses = _.map data.statuses, (it) ->
|
dataCollection.status = _.map data.statuses, (it) ->
|
||||||
it.id = it.id.toString()
|
it.id = it.id.toString()
|
||||||
|
|
||||||
return it
|
return it
|
||||||
|
@ -217,7 +217,7 @@ class IssuesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
|
||||||
tagsWithAtLeastOneElement = _.filter dataCollection.tags, (tag) ->
|
tagsWithAtLeastOneElement = _.filter dataCollection.tags, (tag) ->
|
||||||
return tag.count > 0
|
return tag.count > 0
|
||||||
|
|
||||||
dataCollection.assignedTo = _.map data.assigned_to, (it) ->
|
dataCollection.assigned_to = _.map data.assigned_to, (it) ->
|
||||||
if it.id
|
if it.id
|
||||||
it.id = it.id.toString()
|
it.id = it.id.toString()
|
||||||
else
|
else
|
||||||
|
@ -273,7 +273,7 @@ class IssuesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
|
||||||
{
|
{
|
||||||
title: @translate.instant("COMMON.FILTERS.CATEGORIES.STATUS"),
|
title: @translate.instant("COMMON.FILTERS.CATEGORIES.STATUS"),
|
||||||
dataType: "status",
|
dataType: "status",
|
||||||
content: dataCollection.statuses
|
content: dataCollection.status
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: @translate.instant("COMMON.FILTERS.CATEGORIES.TAGS"),
|
title: @translate.instant("COMMON.FILTERS.CATEGORIES.TAGS"),
|
||||||
|
@ -285,7 +285,7 @@ class IssuesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
|
||||||
{
|
{
|
||||||
title: @translate.instant("COMMON.FILTERS.CATEGORIES.ASSIGNED_TO"),
|
title: @translate.instant("COMMON.FILTERS.CATEGORIES.ASSIGNED_TO"),
|
||||||
dataType: "assigned_to",
|
dataType: "assigned_to",
|
||||||
content: dataCollection.assignedTo
|
content: dataCollection.assigned_to
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: @translate.instant("COMMON.FILTERS.CATEGORIES.ROLE"),
|
title: @translate.instant("COMMON.FILTERS.CATEGORIES.ROLE"),
|
||||||
|
|
Loading…
Reference in New Issue