MDL-49040 gradereport_grader: Fix feedback truncation after & char

This commit is contained in:
Josh Ebarvia
2017-05-23 13:03:44 +09:30
parent df6749b03b
commit cb065a2d2f
+1
View File
@@ -444,6 +444,7 @@ M.gradereport_grader.classes.ajax.prototype.submit = function(properties, values
}
// If feedback is editable and has changed add to the IO queue for it
if (values.editablefeedback && values.feedback !== values.oldfeedback) {
values.feedback = encodeURIComponent(values.feedback);
this.pendingsubmissions.push({transaction:this.report.Y.io.queue(M.cfg.wwwroot+'/grade/report/grader/ajax_callbacks.php', {
method : 'POST',
data : 'id='+this.courseid+'&userid='+properties.userid+'&itemid='+properties.itemid+'&action=update&newvalue='+values.feedback+'&type=feedback&sesskey='+M.cfg.sesskey,