Skip to content

Commit

Permalink
MDL-77058 reportbuilder: Fix for cohort null idnumber column
Browse files Browse the repository at this point in the history
  • Loading branch information
dravek committed Jan 27, 2023
1 parent 880462a commit cf86329
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function add_columns(cohort $cohortentity): void {
->set_type(column::TYPE_TEXT)
->set_is_sortable(true)
->add_fields("{$entitymainalias}.idnumber, {$entitymainalias}.id, {$entitymainalias}.contextid")
->add_callback(static function(string $idnumber, stdClass $cohort): string {
->add_callback(static function(?string $idnumber, stdClass $cohort): string {
global $OUTPUT, $PAGE;
$renderer = $PAGE->get_renderer('core');

Expand Down

0 comments on commit cf86329

Please sign in to comment.