From 0472ade4e29ec2d5c5b0fd4e9e1368b0c3a6bcb8 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sat, 7 Mar 2020 11:35:20 +0100 Subject: [PATCH] use email as fallback if no contact lastname --- app/controllers/export_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb index dccc16f69..244d8607b 100644 --- a/app/controllers/export_controller.rb +++ b/app/controllers/export_controller.rb @@ -51,7 +51,7 @@ def contacts 'fabricaAccountId' => id, 'fabricaId' => id + "-" + email, 'firstName' => firstname, - 'lastName' => lastname, + 'lastName' => lastname.present? ? lastname : email, } end