Fix issues label finder
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
2c32edb3ae
commit
81aebaa189
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue