Patching a minor bug

This commit is contained in:
Will Marshall
2014-07-11 17:02:43 +10:00
parent a31f17cdbd
commit 744f254353

View File

@@ -7,5 +7,7 @@ Darkswarm.filter 'taxons', (Matcher)->
objects
else
objects.filter (obj)->
obj.primary_taxon?.id in ids || (obj.taxons.concat obj.supplied_taxons).some (taxon)->
taxons = obj.taxons
taxons.concat obj.supplied_taxons if obj.supplied_taxons
obj.primary_taxon?.id in ids || taxons.some (taxon)->
taxon.id in ids