0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-26 02:50:28 +01:00

Bugfix: fix error arising from restructure

Dieser Commit ist enthalten in:
Angus McLeod 2018-05-21 15:52:39 +10:00
Ursprung 8b88309ed0
Commit cf4beb7619

Datei anzeigen

@ -188,12 +188,10 @@ class CustomWizard::Builder
if field_template['choices_filters'] && field_template['choices_filters'].length > 0 if field_template['choices_filters'] && field_template['choices_filters'].length > 0
field_template['choices_filters'].each do |f| field_template['choices_filters'].each do |f|
objects.reject! do |o| objects.reject! do |o|
prop = field_template['key'] if f['key'].include? 'custom_fields'
o.custom_fields[f['key'].split('.')[1]].to_s != f['value'].to_s
if prop.include? 'custom_fields'
o.custom_fields[prop.split('.')[1]].to_s != field_template['value'].to_s
else else
o[prop].to_s != field_template['value'].to_s o[prop].to_s != f['value'].to_s
end end
end end
end end