CRM-14727 - Move $isActive from SequenceListener to Events
authorTim Otten <totten@civicrm.org>
Tue, 27 May 2014 19:55:59 +0000 (12:55 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 28 May 2014 04:00:11 +0000 (21:00 -0700)
commit874dae9d263b369e2613134bafbe96f4e4f012fd
tree59566537e891ec482db56b8eecdcdabc427dba41
parentb019b13008bbc4e630f8b6a40d5b7c3a73916c5f
CRM-14727 - Move $isActive from SequenceListener to Events

When a case-change listener makes another change to a case, we don't want to
refire all the case-change listeners.  $isActive helps avoid that (infinite)
recursion.

This commit has two important qualities:

 1. The code is simpler. There's a single set() and single unset().
 2. Developers of new case-change listeners don't need to worry
    about recursion problems -- it's handled centrally.
Civi/CCase/Events.php
Civi/CCase/SequenceListener.php