diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-29 19:19:26 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-29 19:19:26 +0300 |
commit | d45a6b2941f30d71f828e0fc8adaeab19f87b1a0 (patch) | |
tree | d774fc68fdafdce0936924418be2e10743f2af74 /app/finders | |
parent | 6fb9badcaef5152c60bf4091899a84b34f5cc1b8 (diff) | |
download | gitlab-ce-d45a6b2941f30d71f828e0fc8adaeab19f87b1a0.tar.gz |
Migrate issue/mr labels from act_as_taggable to own labels
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/base_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/base_finder.rb b/app/finders/base_finder.rb index 7150bb2e31b..4be74a1ff8c 100644 --- a/app/finders/base_finder.rb +++ b/app/finders/base_finder.rb @@ -125,7 +125,7 @@ class BaseFinder def by_label(items) if params[:label_name].present? - items = items.tagged_with(params[:label_name]) + items = items.joins(:labels).where("labels.title = ?", params[:label_name]) end items |