File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,13 @@ function questionnaire_get_coursemodule_info($coursemodule) {
262
262
263
263
$ info = new cached_cm_info ();
264
264
$ info ->customdata = (object )[];
265
+
266
+ if ($ coursemodule ->showdescription ) {
267
+ // Convert intro to html. Do not filter cached version, filters run at display time.
268
+ // Based on the function quiz_get_coursemodule_info() in the quiz module.
269
+ $ info ->content = format_module_intro ('questionnaire ' , $ questionnaire , $ coursemodule ->id , false );
270
+ }
271
+
265
272
// Populate the custom completion rules as key => value pairs, but only if the completion mode is 'automatic'.
266
273
if ($ coursemodule ->completion == COMPLETION_TRACKING_AUTOMATIC ) {
267
274
$ info ->customdata ->customcompletionrules ['completionsubmit ' ] = $ questionnaire ->completionsubmit ;
You can’t perform that action at this time.
0 commit comments