0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 01:10:28 +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)
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