mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:25:24 +08:00
Allow badges to be marked as "titleable".
This commit is contained in:
@ -30,10 +30,11 @@ class Admin::BadgesController < Admin::AdminController
|
||||
end
|
||||
|
||||
def update_badge_from_params(badge)
|
||||
params.permit(:name, :description, :badge_type_id)
|
||||
params.permit(:name, :description, :badge_type_id, :allow_title)
|
||||
badge.name = params[:name]
|
||||
badge.description = params[:description]
|
||||
badge.badge_type = BadgeType.find(params[:badge_type_id])
|
||||
badge.allow_title = params[:allow_title]
|
||||
badge
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user