Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 01:10:28 +01:00
Tags bugfix
Dieser Commit ist enthalten in:
Ursprung
6ced0cf13c
Commit
565e175f79
1 geänderte Dateien mit 3 neuen und 5 gelöschten Zeilen
|
@ -28,7 +28,7 @@ class CustomWizard::Action
|
|||
|
||||
creator = PostCreator.new(user, params)
|
||||
post = creator.create
|
||||
|
||||
|
||||
if creator.errors.present?
|
||||
updater.errors.add(:create_topic, creator.errors.full_messages.join(" "))
|
||||
elsif action['skip_redirect'].blank?
|
||||
|
@ -200,13 +200,11 @@ class CustomWizard::Action
|
|||
data: data,
|
||||
user: user,
|
||||
).perform
|
||||
|
||||
|
||||
if output.is_a?(Array)
|
||||
output.flatten
|
||||
elsif output.is_a?(Integer)
|
||||
else output.is_a?(String)
|
||||
[*output]
|
||||
elsif output.is_a?(String)
|
||||
[*output.to_i]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Laden …
In neuem Issue referenzieren