diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-20 08:30:05 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-20 12:32:48 +0300 |
commit | dfc5680b1cd3ab958bd7e97b1b87e517a95017f6 (patch) | |
tree | 576cbd60a5071fac864c324af6dace8617725d14 /app/models | |
parent | 4df7c7912fe1d03d9a6721cabdfab9134c278bd9 (diff) | |
download | gitlab-ce-dfc5680b1cd3ab958bd7e97b1b87e517a95017f6.tar.gz |
Merge branch 'fix-label-color-input' into 'master'
Fix label color input.
Because `value` was set, every label color would render as purple in the form.
Introduced by 83b5a9ae2bfb594bcb5a9a931d6781ba05c9b9ef between 7.9 and 7.10, so no changelog item.
See merge request !538
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/label.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/label.rb b/app/models/label.rb index 9d7099c5652..1f22ed23d42 100644 --- a/app/models/label.rb +++ b/app/models/label.rb @@ -13,6 +13,8 @@ class Label < ActiveRecord::Base DEFAULT_COLOR = '#428BCA' + default_value_for :color, DEFAULT_COLOR + belongs_to :project has_many :label_links, dependent: :destroy has_many :issues, through: :label_links, source: :target, source_type: 'Issue' |