MDL-70340 mod_workshop: Do not apply format to peer comments
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...
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
ee44d51aee
commit
7276dfd592
@@ -1271,10 +1271,7 @@ class mod_workshop_external extends external_api {
|
||||
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'],
|
||||
|
||||
Reference in New Issue
Block a user