https://issues.civicrm.org/jira/browse/CRM-15826
*/
static public function addCallback($phase, $callback, $params = NULL, $id = NULL) {
$frame = \Civi\Core\Transaction\Manager::singleton()->getBaseFrame();
+ if (empty($frame)) return NULL;
$frame->addCallback($phase, $callback, $params, $id);
}
}
}
else {
$this->_from = "
- FROM civicrm_case $cc
+ FROM civicrm_contact $c, civicrm_case $cc
inner join civicrm_case_contact $ccc on ${ccc}.case_id = ${cc}.id
inner join civicrm_contact $c2 on ${c2}.id=${ccc}.contact_id
";