diff --git a/app/models/cti/caller_id.rb b/app/models/cti/caller_id.rb index 71fe4291f..e591f5a98 100644 --- a/app/models/cti/caller_id.rb +++ b/app/models/cti/caller_id.rb @@ -23,10 +23,9 @@ module Cti o_id: data[:o_id], user_id: data[:user_id], ) - if record.new_record? - record.comment = data[:comment] - record.save! - end + return if !record.new_record? + record.comment = data[:comment] + record.save! end =begin