Skip to content

Commit

Permalink
Merge pull request civicrm#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 authored and sluc23 committed Jan 10, 2018
2 parents 666e80d + 05d2ba0 commit 82bf452
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 82bf452

Please sign in to comment.