Skip to content

Commit

Permalink
MDL-70340 mod_workshop: Do not apply format to peer comments
Browse files Browse the repository at this point in the history
This text is not directly output to final users, it is used just in the textarea in both the site and the app.
Applying format, case issues like adding glossary links etc...
  • Loading branch information
jleyva committed Nov 27, 2020
1 parent f34b446 commit 795a8ac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mod/workshop/classes/external.php
Original file line number Diff line number Diff line change
Expand Up @@ -1271,10 +1271,7 @@ public static function get_assessment_form_definition($assessmentid, $mode = 'as
if (!empty($formdata[$typeofdata])) {
$alldata = (array) $formdata[$typeofdata];
foreach ($alldata as $key => $val) {
if (strpos($key, 'peercomment__idx_') === 0) {
// Format reviewer comment.
list($val, $format) = external_format_text($val, FORMAT_MOODLE, $context->id);
} else if (strpos($key, 'description__idx_')) {
if (strpos($key, 'description__idx_')) {
// Format dimension description.
$id = str_replace('description__idx_', '', $key);
list($val, $format) = external_format_text($val, $alldata['dimensionid__idx_' . $id . 'format'],
Expand Down

0 comments on commit 795a8ac

Please sign in to comment.