mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:24:47 +08:00
FIX: blanking theme field was not properly removing it
This commit is contained in:
@ -213,7 +213,7 @@ class Theme < ActiveRecord::Base
|
||||
field = theme_fields.find{|f| f.name==name && f.target == target_id}
|
||||
if field
|
||||
if value.blank?
|
||||
field.destroy
|
||||
theme_fields.delete field.destroy
|
||||
else
|
||||
if field.value != value
|
||||
field.value = value
|
||||
|
Reference in New Issue
Block a user