Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +01:00
Filter redirect_to from submissions
Dieser Commit ist enthalten in:
Ursprung
54a889d8e0
Commit
bf15927c8e
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -145,7 +145,7 @@ class CustomWizard::AdminController < ::ApplicationController
|
||||||
all_submissions = [*rows].map do |r|
|
all_submissions = [*rows].map do |r|
|
||||||
submissions = ::JSON.parse(r.value)
|
submissions = ::JSON.parse(r.value)
|
||||||
username = User.find(r.key).username
|
username = User.find(r.key).username
|
||||||
submissions.map { |s| { username: username }.merge!(s) }
|
submissions.map { |s| { username: username }.merge!(s.except("redirect_to")) }
|
||||||
end.flatten
|
end.flatten
|
||||||
|
|
||||||
render json: success_json.merge(submissions: all_submissions)
|
render json: success_json.merge(submissions: all_submissions)
|
||||||
|
|
Laden …
In neuem Issue referenzieren