Fixed problem with unassigned filters

stable
Jesús Espino 2014-08-27 15:55:14 +02:00
parent a367787f26
commit c54cb8b243
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class IssuesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
if filterName == "page" or filterName == "orderBy"
continue
splittedValues = (parseInt(val) for val in "#{filterValue}".split(","))
splittedValues = _.map("#{filterValue}".split(","), (x) -> if x == "null" then null else parseInt(x))
existingValues = _.intersection(splittedValues, _.map(@scope.filters[filterName], "id"))
if splittedValues.length != existingValues.length
@location.search(filterName, existingValues.join())