lib/bright/sis_apis/skyward.rb in bright-1.2 vs lib/bright/sis_apis/skyward.rb in bright-1.2.1

- old
+ new

@@ -212,10 +212,10 @@ :postal_code => user_params["ZipCode"] }] end ["PhoneNumber", "PhoneNumber2", "PhoneNumber3"].each do |phone_param| - if !user_params[phone_param].blank? + if user_params[phone_param].present? && user_params["#{phone_param}Type"].present? user_data_hsh[:phone_numbers] ||= [] user_data_hsh[:phone_numbers] << { :phone_number => user_params[phone_param], :type => PHONE_TYPE_CONVERSION[user_params["#{phone_param}Type"]] }