From a6a3615a11d77f7dc04f69aaab8f6608ecd433c7 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 14 Jul 2021 12:28:55 +0200 Subject: [PATCH] properly handle missing provider. #747 --- app/models/contact.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/contact.rb b/app/models/contact.rb index 33dd22732..e28142b7d 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -308,7 +308,7 @@ def name # workaround for non-standard database column names and association def provider_id - provider.uid + provider.present? ? provider.uid : nil end def provider_id=(value)