mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
FIX: if badge has an image do not override icon
This commit is contained in:
parent
d13cd3471f
commit
35d248ab0d
@ -129,8 +129,10 @@ class Badge < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def default_icon=(val)
|
||||
self.icon ||= val
|
||||
self.icon = val if self.icon = "fa-certificate"
|
||||
unless self.image
|
||||
self.icon ||= val
|
||||
self.icon = val if self.icon = "fa-certificate"
|
||||
end
|
||||
end
|
||||
|
||||
def default_name=(val)
|
||||
|
Loading…
Reference in New Issue
Block a user