Skip to content

Commit

Permalink
Improve MantisColumn sort support
Browse files Browse the repository at this point in the history
Allow including select elements from the sort method in MantisColumn
when building the filter sql query.

Fixes: #26612
  • Loading branch information
cproensa authored and dregad committed Jan 28, 2020
1 parent 6fd3aa6 commit e26eabf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/classes/BugFilterQuery.class.php
Expand Up @@ -1694,6 +1694,9 @@ protected function build_order_by() {

$t_clauses = $t_column_object->sortquery( $c_dir );
if( is_array( $t_clauses ) ) {
if( isset( $t_clauses['select'] ) ) {
$this->add_select( $t_clauses['select'] );
}
if( isset( $t_clauses['join'] ) ) {
$this->add_join( $t_clauses['join'] );
}
Expand Down

0 comments on commit e26eabf

Please sign in to comment.