From fd1b0f9c18670e851ed3280d8978328e8d4ba4bd Mon Sep 17 00:00:00 2001 From: Thorsten Date: Mon, 5 Dec 2016 13:30:55 +0100 Subject: [PATCH] maybe_add should always return the record --- app/models/cti/caller_id.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/cti/caller_id.rb b/app/models/cti/caller_id.rb index e591f5a98..42e81391e 100644 --- a/app/models/cti/caller_id.rb +++ b/app/models/cti/caller_id.rb @@ -23,7 +23,7 @@ module Cti o_id: data[:o_id], user_id: data[:user_id], ) - return if !record.new_record? + return record if !record.new_record? record.comment = data[:comment] record.save! end