mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
Make it possible to set a site setting to empty string
This commit is contained in:
@ -7,7 +7,7 @@ class Admin::SiteSettingsController < Admin::AdminController
|
||||
end
|
||||
|
||||
def update
|
||||
params.require(:value)
|
||||
raise ActionController::ParameterMissing.new(:value) unless params.has_key?(:value)
|
||||
SiteSetting.send("#{params[:id]}=", params[:value])
|
||||
render nothing: true
|
||||
end
|
||||
|
Reference in New Issue
Block a user