Merge pull request #4976 from christianbeeznest/ofaj-21046-5

Course: fix display images in intro - refs BT#21046
pull/4977/head
christianbeeznest 1 year ago committed by GitHub
commit a1ed8e5fef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/CoreBundle/Controller/CourseController.php

@ -643,7 +643,7 @@ class CourseController extends ToolBaseController
/** @var CToolIntro $ctoolintro */
$ctoolintro = $ctoolintroRepo->findOneBy(['courseTool' => $ctool]);
if ($ctoolintro) {
$introText = preg_replace('/<[^>]*>(\s|&nbsp;)*<\/[^>]*>/', '', $ctoolintro->getIntroText());
$introText = $ctoolintro->getIntroText();
$responseData = [
'iid' => $ctoolintro->getIid(),
'introText' => $introText,

Loading…
Cancel
Save