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
path: root/app
diff options
context:
space:
mode:
authorFelipe Artur <fcardozo@gitlab.com>2019-02-04 13:52:19 +0300
committerSean McGivern <sean@gitlab.com>2019-02-04 13:52:19 +0300
commitd3f5fd33cfb0075d109494233ed7010f7e8db34d (patch)
tree7b26fbb9162ab6184a8145f45a8e723ea5d6de98 /app
parentfa3a2f9e98e4bc2a1badf6fac41a002afab2a041 (diff)
Fix template labels
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index e55a57e46ef..f6218519533 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -1068,7 +1068,7 @@ class Project < ActiveRecord::Base
# rubocop: disable CodeReuse/ServiceClass
def create_labels
Label.templates.each do |label|
- params = label.attributes.except('id', 'template', 'created_at', 'updated_at')
+ params = label.attributes.except('id', 'template', 'created_at', 'updated_at', 'type')
Labels::FindOrCreateService.new(nil, self, params).execute(skip_authorization: true)
end
end