Fix issues label finder

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-07-30 12:04:47 +03:00
parent 2c32edb3ae
commit 81aebaa189
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -125,7 +125,7 @@ class BaseFinder
def by_label(items)
if params[:label_name].present?
items = items.joins(:labels).where("labels.title = ?", params[:label_name])
items = items.joins(:labels).where("labels.title in (?)", params[:label_name].split(","))
end
items