0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 17:30:29 +01:00

convert key to string

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-05-07 04:02:56 +05:30
Ursprung 56268823c5
Commit c254a0c6b8

Datei anzeigen

@ -251,6 +251,7 @@ class CustomWizard::Wizard
def filter_conditional_fields(submission) def filter_conditional_fields(submission)
included_fields = steps.map { |s| s.fields.map { |f| f.id } }.flatten included_fields = steps.map { |s| s.fields.map { |f| f.id } }.flatten
submission.select do |key, _| submission.select do |key, _|
key = key.to_s
included_fields.include?(key) || included_fields.include?(key) ||
required_fields.include?(key) || required_fields.include?(key) ||
key.include?("action") key.include?("action")
@ -261,6 +262,7 @@ class CustomWizard::Wizard
%w{ %w{
submitted_at submitted_at
route_to route_to
saved_param
} }
end end