app/helpers/sales_helper.rb in artfully_ose-1.2.0 vs app/helpers/sales_helper.rb in artfully_ose-1.3.0.pre1
- old
+ new
@@ -2,11 +2,13 @@
def door_list_sort(person)
result = if person.last_name.present?
person.last_name
elsif person.first_name.present?
person.first_name
- else
+ elsif person.email.present?
person.email
+ else
+ ""
end
result.downcase
end