Skip to content

Commit

Permalink
Merge pull request #11419 from octo-happiness/CRM-21538
Browse files Browse the repository at this point in the history
CRM-21538: Field not found when sorting report by Case Type as a section header
  • Loading branch information
colemanw committed Dec 17, 2017
2 parents 2c4d35f + 17916a2 commit c865af6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Report/Form/Case/Detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@ public function orderBy() {

if ($this->_caseTypeNameOrderBy) {
$this->_orderBy = str_replace('case_civireport.case_type_name', 'civireport_case_types.title', $this->_orderBy);
if (isset($this->_sections['civicrm_case_case_type_name'])) {
$this->_sections['civicrm_case_case_type_name']['dbAlias'] = 'civireport_case_types.title';
}
}
}

Expand Down

0 comments on commit c865af6

Please sign in to comment.