File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
public/plugin/BuyCourses/src Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -791,22 +791,11 @@ public function getCourseInfo($courseId)
791
791
return [];
792
792
}
793
793
794
- $ courseDescription = $ entityManager ->getRepository (CCourseDescription::class)
795
- ->findOneBy (
796
- [
797
- 'cId ' => $ course ->getId (),
798
- 'sessionId ' => 0 ,
799
- ],
800
- [
801
- 'descriptionType ' => 'ASC ' ,
802
- ]
803
- );
804
-
805
794
$ globalParameters = $ this ->getGlobalParameters ();
806
795
$ courseInfo = [
807
796
'id ' => $ course ->getId (),
808
797
'title ' => $ course ->getTitle (),
809
- 'description ' => $ courseDescription ? $ courseDescription -> getContent () : null ,
798
+ 'description ' => $ course -> getDescription () ,
810
799
'code ' => $ course ->getCode (),
811
800
'visual_code ' => $ course ->getVisualCode (),
812
801
'teachers ' => [],
You can’t perform that action at this time.
0 commit comments