Commits vergleichen
9 Commits
main
...
fix-wizard
Autor | SHA1 | Datum | |
---|---|---|---|
|
a5af0b109d | ||
|
4ce82b0d17 | ||
|
6294f6f9c0 | ||
|
98391b565e | ||
|
779912332a | ||
|
1d2f75951f | ||
|
3433bd4141 | ||
|
dae803bf20 | ||
|
24d7ca646a |
1 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
# name: discourse-custom-wizard
|
||||
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
|
||||
# version: 2.4.23
|
||||
# version: 2.4.24
|
||||
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos
|
||||
# url: https://github.com/paviliondev/discourse-custom-wizard
|
||||
# contact_emails: development@pavilion.tech
|
||||
|
@ -239,7 +239,8 @@ after_initialize do
|
|||
|
||||
on(:before_create_topic) do |topic_params, user|
|
||||
category = topic_params.category
|
||||
if category&.custom_fields&.[]('create_topic_wizard').present?
|
||||
wizard_submission_id = topic_params.custom_fields&.[]('wizard_submission_id')
|
||||
if category&.custom_fields&.[]('create_topic_wizard').present? && wizard_submission_id.blank?
|
||||
raise Discourse::InvalidParameters.new(
|
||||
I18n.t('wizard.error_messages.wizard_replacing_composer')
|
||||
)
|
||||
|
|
Laden …
In neuem Issue referenzieren