mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: if badge has an image do not override icon
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user