fix the autocomplete

This commit is contained in:
Connor Turland 2016-03-24 23:36:57 -07:00
parent b36d5df6cb
commit 87d6dfe8de

View file

@ -8,7 +8,7 @@ module TopicsHelper
topic['id'] = t.id
topic['label'] = t.name
topic['value'] = t.name
topic['description'] = t.desc.truncate(70) # make this return matched results
topic['description'] = t.desc ? t.desc.truncate(70) : '' # make this return matched results
topic['type'] = t.metacode.name
topic['typeImageURL'] = t.metacode.icon
topic['permission'] = t.permission