Skip to content

Commit 05ced4d

Browse files
committed
Merge branch '1.11.x_contidos-dixitias-2024-clickable-course-name-on-categories' of https://github.com/contidos-dixitais/chamilo-lms into 5048
2 parents 8c27c9d + f1667d1 commit 05ced4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/inc/ajax/course_category.ajax.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
$result = '';
3232
foreach ($courses as $course) {
3333
$row++;
34-
$table->setCellContents($row, 0, $course['title']);
34+
$courseLink = '<a href="'.api_get_path(WEB_PATH).'courses/'.$course['code'].'/index.php">'.$course['title'].'</a>';
35+
$table->setCellContents($row, 0, $courseLink);
3536
}
3637

3738
echo $table->toHtml();

0 commit comments

Comments
 (0)