Skip to content

Commit 0b8c4cf

Browse files
committed
Plugin: BuyCourses: Fix courses description query in BuyCourses catalogue - refs #2615
1 parent a4541fe commit 0b8c4cf

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

public/plugin/BuyCourses/src/buy_course_plugin.class.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -791,22 +791,11 @@ public function getCourseInfo($courseId)
791791
return [];
792792
}
793793

794-
$courseDescription = $entityManager->getRepository(CCourseDescription::class)
795-
->findOneBy(
796-
[
797-
'cId' => $course->getId(),
798-
'sessionId' => 0,
799-
],
800-
[
801-
'descriptionType' => 'ASC',
802-
]
803-
);
804-
805794
$globalParameters = $this->getGlobalParameters();
806795
$courseInfo = [
807796
'id' => $course->getId(),
808797
'title' => $course->getTitle(),
809-
'description' => $courseDescription ? $courseDescription->getContent() : null,
798+
'description' => $course->getDescription(),
810799
'code' => $course->getCode(),
811800
'visual_code' => $course->getVisualCode(),
812801
'teachers' => [],

0 commit comments

Comments
 (0)