From b0e74adce7580abe4e36373df9f39a8ef14dcb68 Mon Sep 17 00:00:00 2001 From: atif-shaikh Date: Thu, 15 Jan 2015 15:18:05 +0530 Subject: [PATCH] CRM-15826 - CiviCase core bugs https://issues.civicrm.org/jira/browse/CRM-15826 --- CRM/Core/Transaction.php | 1 + CRM/Report/Form/Case/Summary.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Transaction.php b/CRM/Core/Transaction.php index aad1beeef6..131bca9f75 100644 --- a/CRM/Core/Transaction.php +++ b/CRM/Core/Transaction.php @@ -248,6 +248,7 @@ class CRM_Core_Transaction { */ 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); } } diff --git a/CRM/Report/Form/Case/Summary.php b/CRM/Report/Form/Case/Summary.php index 9a9b1362d9..8e0601ab57 100644 --- a/CRM/Report/Form/Case/Summary.php +++ b/CRM/Report/Form/Case/Summary.php @@ -261,7 +261,7 @@ inner join civicrm_contact $c2 on ${c2}.id=${ccc}.contact_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 "; -- 2.25.1