Skip to content

Commit

Permalink
MDL-49040 gradereport_grader: Fix feedback truncation after & char
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Ebarvia committed May 23, 2017
1 parent 590292d commit f0242b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grade/report/grader/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f0242b4

Please sign in to comment.