Skip to content

Commit

Permalink
Merge pull request #13359 from chamilwijesooriya/issue-625
Browse files Browse the repository at this point in the history
(dev/core#625) DB error on Case Summary report
  • Loading branch information
seamuslee001 authored Dec 29, 2018
2 parents 7ee1e31 + 222b156 commit 564d6ed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CRM/Report/Form/Case/Summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@ public function from() {
$crt = $this->_aliases['civicrm_relationship_type'];
$ccc = $this->_aliases['civicrm_case_contact'];

foreach ($this->_columns['civicrm_relationship']['filters'] as $fieldName => $field) {
if (!empty($this->_params[$fieldName . '_op']) && isset($this->_params[$fieldName . '_value'])) {
$this->_relField = TRUE;
break;
}
}

if ($this->_relField) {
$this->_from = "
FROM civicrm_contact $c
Expand Down

0 comments on commit 564d6ed

Please sign in to comment.