Fix issues label finder

Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
上级 2c32edb3
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册