Skip to content

Commit

Permalink
Merge branch 'MDL-76142' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaies committed Nov 2, 2022
2 parents 8ddc2a5 + 429508a commit d18a89f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cohort/classes/reportbuilder/local/entities/cohort.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ protected function get_all_columns(): array {
* @return filter[]
*/
protected function get_all_filters(): array {
global $DB;

$tablealias = $this->get_table_alias('cohort');

// Context filter.
Expand Down Expand Up @@ -302,7 +304,7 @@ protected function get_all_filters(): array {
'description',
new lang_string('description'),
$this->get_entity_name(),
"{$tablealias}.description"
$DB->sql_cast_to_char("{$tablealias}.description")
))
->add_joins($this->get_joins());

Expand Down

0 comments on commit d18a89f

Please sign in to comment.