Commit 81aebaa1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix issues label finder

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 2c32edb3
...@@ -125,7 +125,7 @@ class BaseFinder ...@@ -125,7 +125,7 @@ class BaseFinder
def by_label(items) def by_label(items)
if params[:label_name].present? 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 end
items items
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment