diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-01-18 17:21:41 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-01-18 17:21:41 +0000 |
commit | 210e6e8a654a026443af1fd1f007a5fc093e7ac2 (patch) | |
tree | fa01a090fedc9d5efca909cb200aa4b7e1269fa8 /app/helpers | |
parent | 91374baf8685cc58bb7334ed131bc223ad0875e2 (diff) | |
parent | a956fac221e9e20e04e9b8557ac84ff4f920c891 (diff) | |
download | gitlab-ce-210e6e8a654a026443af1fd1f007a5fc093e7ac2.tar.gz |
Merge branch 'issue_37143_2' into 'master'
Remove unnecessary query from labels dropdown
Closes #37143
See merge request gitlab-org/gitlab-ce!16520
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/issuables_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb index 2668cf78afe..520a875238c 100644 --- a/app/helpers/issuables_helper.rb +++ b/app/helpers/issuables_helper.rb @@ -304,6 +304,12 @@ module IssuablesHelper issuable.model_name.human.downcase end + def selected_labels + Array(params[:label_name]).map do |label_name| + Label.new(title: label_name) + end + end + private def sidebar_gutter_collapsed? |