Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
convert key to string
Dieser Commit ist enthalten in:
Ursprung
56268823c5
Commit
c254a0c6b8
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
|
@ -251,6 +251,7 @@ class CustomWizard::Wizard
|
|||
def filter_conditional_fields(submission)
|
||||
included_fields = steps.map { |s| s.fields.map { |f| f.id } }.flatten
|
||||
submission.select do |key, _|
|
||||
key = key.to_s
|
||||
included_fields.include?(key) ||
|
||||
required_fields.include?(key) ||
|
||||
key.include?("action")
|
||||
|
@ -261,6 +262,7 @@ class CustomWizard::Wizard
|
|||
%w{
|
||||
submitted_at
|
||||
route_to
|
||||
saved_param
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Laden …
In neuem Issue referenzieren