summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-28 22:37:11 +0100
committerspag <spag@golwen.net>2013-02-28 22:37:11 +0100
commit24fbc181d0f767103b4062be4482af92feb5ffd5 (patch)
treefb0893eae23583da14069a5b786349c50f2aac4c
parente1c2ef6e5d2d48eab026f788d93e6c170d276194 (diff)
call forwarding entry scope extended
-rw-r--r--app/models/call_forward.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/call_forward.rb b/app/models/call_forward.rb
index a932e11..195ac36 100644
--- a/app/models/call_forward.rb
+++ b/app/models/call_forward.rb
@@ -177,7 +177,7 @@ class CallForward < ActiveRecord::Base
end
def deactivate_concurring_entries
- CallForward.where(:call_forwardable_id => self.call_forwardable_id, :call_forwardable_type => self.call_forwardable_type, :call_forward_case_id => self.call_forward_case_id, :active => true).each do |call_forwarding_entry|
+ CallForward.where(:call_forwardable_id => self.call_forwardable_id, :call_forwardable_type => self.call_forwardable_type, :call_forward_case_id => self.call_forward_case_id, :source => self.source, :active => true).each do |call_forwarding_entry|
if call_forwarding_entry.id != self.id
call_forwarding_entry.update_attributes(:active => false)
end