Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 11:52:54 +01:00
fix linting
Dieser Commit ist enthalten in:
Ursprung
6294f6f9c0
Commit
4ce82b0d17
1 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen
|
@ -240,12 +240,10 @@ after_initialize do
|
||||||
on(:before_create_topic) do |topic_params, user|
|
on(:before_create_topic) do |topic_params, user|
|
||||||
category = topic_params.category
|
category = topic_params.category
|
||||||
wizard_submission_id = topic_params.custom_fields['wizard_submission_id']
|
wizard_submission_id = topic_params.custom_fields['wizard_submission_id']
|
||||||
|
|
||||||
if category&.custom_fields&.[]('create_topic_wizard').present? && wizard_submission_id.blank?
|
if category&.custom_fields&.[]('create_topic_wizard').present? && wizard_submission_id.blank?
|
||||||
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