Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
FIX: avoid exception if no update data is available
Dieser Commit ist enthalten in:
Ursprung
b84677ddb6
Commit
fd9cc78e58
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
|
@ -483,6 +483,8 @@ class CustomWizard::Builder
|
||||||
user_field = pu['user_field']
|
user_field = pu['user_field']
|
||||||
key = pu['key']
|
key = pu['key']
|
||||||
|
|
||||||
|
return if data[key].blank?
|
||||||
|
|
||||||
if user_field || custom_field
|
if user_field || custom_field
|
||||||
custom_fields[user_field || custom_field] = data[key]
|
custom_fields[user_field || custom_field] = data[key]
|
||||||
else
|
else
|
||||||
|
|
Laden …
In neuem Issue referenzieren