summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorFelipe Artur <fcardozo@gitlab.com>2019-02-04 10:52:19 +0000
committerSean McGivern <sean@gitlab.com>2019-02-04 10:52:19 +0000
commitd3f5fd33cfb0075d109494233ed7010f7e8db34d (patch)
tree7b26fbb9162ab6184a8145f45a8e723ea5d6de98 /app/models
parentfa3a2f9e98e4bc2a1badf6fac41a002afab2a041 (diff)
downloadgitlab-ce-d3f5fd33cfb0075d109494233ed7010f7e8db34d.tar.gz
Fix template labels
Diffstat (limited to 'app/models')
-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