0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 11:52:54 +01:00

ensure custom_value is not a blank string

Dieser Commit ist enthalten in:
Angus McLeod 2018-10-07 18:03:53 +11:00
Ursprung ea1c7f3e64
Commit f903aaed59

Datei anzeigen

@ -287,7 +287,7 @@ class CustomWizard::Builder
if action['add_fields']
action['add_fields'].each do |field|
value = field['value_custom'] ? field['value_custom'] : data[field['value']]
value = field['value_custom'].present? ? field['value_custom'] : data[field['value']]
key = field['key']
if key && (value.present? || value === false)