From d9ca45973f89c41da5e5bad22a8efb5352b09d8f Mon Sep 17 00:00:00 2001 From: Martin Stcknbrkr Date: Sun, 4 Apr 2021 17:49:31 +0000 Subject: [PATCH] Add nested name of category to cohort syncronizations table (full path with all parents) --- classes/output/summary_table.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/output/summary_table.php b/classes/output/summary_table.php index f2a34ed..3f91e96 100644 --- a/classes/output/summary_table.php +++ b/classes/output/summary_table.php @@ -137,8 +137,9 @@ public function col_category(\stdClass $record) { } $persistent = new persistent(0, $record); + $category = \core_course_category::get($persistent->get_category()->id); - return $persistent->get_category()->name; + return $category->get_nested_name(); } /**