Civi\CCase\Events - Fix test regressions
authorTim Otten <totten@civicrm.org>
Fri, 30 May 2014 20:34:40 +0000 (13:34 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 30 May 2014 20:34:40 +0000 (13:34 -0700)
Civi/CCase/Events.php

index 9c5c10c588758508d51b306f12193c588adc6f3b..85b633682048d3f337e1540079b776632ad720a4 100644 (file)
@@ -44,7 +44,7 @@ class Events {
     $caseId = NULL;
     switch ($event->entity) {
       case 'Activity':
-        if ($event->object->case_id) {
+        if (!empty($event->object->case_id)) {
           $caseId = $event->object->case_id;
         }
         break;