1
0
Fork 0

leave send_message if there are any empty data fields

Dieser Commit ist enthalten in:
Robert Barrow 2019-10-01 18:14:15 +01:00
Ursprung f5fc69a908
Commit 979e896d6b

Datei anzeigen

@ -423,6 +423,16 @@ class CustomWizard::Builder
def send_message(user, action, data)
empty_data = false
data.each do |k, v|
if v.empty?
empty_data = true
end
end
# leave if there are any empty fields
return if empty_data
unless action['custom_title_enabled']
title = data[action['title']]
else