fix linting
Dieser Commit ist enthalten in:
Ursprung
dae803bf20
Commit
3433bd4141
1 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen
|
@ -239,12 +239,10 @@ after_initialize do
|
||||||
|
|
||||||
on(:before_create_topic) do |topic_params, user|
|
on(:before_create_topic) do |topic_params, user|
|
||||||
next if topic_params[:archetype] == 'message'
|
next if topic_params[:archetype] == 'message'
|
||||||
|
|
||||||
if topic_params[:category]&.custom_fields&.[]('create_topic_wizard').present? && !topic_params[:from_wizard]
|
if topic_params[:category]&.custom_fields&.[]('create_topic_wizard').present? && !topic_params[:from_wizard]
|
||||||
raise Discourse::InvalidParameters.new(
|
raise Discourse::InvalidParameters.new(
|
||||||
I18n.t('wizard.error_messages.wizard_replacing_composer')
|
I18n.t('wizard.error_messages.wizard_replacing_composer')
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Laden …
In neuem Issue referenzieren