Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +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)
|
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
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren