diff --git a/app/models/cti/caller_id.rb b/app/models/cti/caller_id.rb index a00599c07..4118a58df 100644 --- a/app/models/cti/caller_id.rb +++ b/app/models/cti/caller_id.rb @@ -241,7 +241,7 @@ returns preferences_maybe = {} preferences_maybe[direction] = [] - self.lookup(caller_id).each { |record| + lookup(caller_id).each { |record| if record.level == 'known' preferences_known[direction].push record else