From b06d9b6d1420a0510b4d5552c694fd4b39810ee5 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Tue, 21 Jul 2015 18:28:18 +0300 Subject: [PATCH] Remove double type code #2776 --- app/models/depp/contact.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/depp/contact.rb b/app/models/depp/contact.rb index 2383bda29..eb15b192e 100644 --- a/app/models/depp/contact.rb +++ b/app/models/depp/contact.rb @@ -140,7 +140,7 @@ module Depp def type_string(type_code) return '' if type_code.blank? t = SELECTION_TYPES.select { |tp| tp.second == type_code } - t.try(:first) + t.try(:first).try(:first) end end