diff options
author | Felipe Artur <fcardozo@gitlab.com> | 2019-02-04 13:52:19 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-02-04 13:52:19 +0300 |
commit | d3f5fd33cfb0075d109494233ed7010f7e8db34d (patch) | |
tree | 7b26fbb9162ab6184a8145f45a8e723ea5d6de98 /app | |
parent | fa3a2f9e98e4bc2a1badf6fac41a002afab2a041 (diff) |
Fix template labels
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project.rb | 2 |
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 |