Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-04-26 21:05:21 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-06-04 01:10:20 +0300
commit4ab6bfcef50b5e3a8c879ad06161bbc8b56bfb9a (patch)
treeeef11b6d12c6993e37becc83306ff4f7ee7e749d /app/helpers/issuables_helper.rb
parent243e51325536ca8468a9d2692cc68aa5f466b5e3 (diff)
Set indeterminated items
Diffstat (limited to 'app/helpers/issuables_helper.rb')
-rw-r--r--app/helpers/issuables_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index fe84ee3de44..b1ff95f6208 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -97,4 +97,9 @@ module IssuablesHelper
end
end
+ def label_ids(issuable)
+ return nil if !issuable.labels.any?
+ issuable.labels.pluck :id
+ end
+
end