Skip to content

Commit

Permalink
MDL-38311 question manual grading: comment fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Mar 6, 2013
1 parent 53b8e25 commit 770e4a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions question/engine/questionusage.php
Expand Up @@ -646,6 +646,7 @@ public function finish_all_questions($timestamp = null) {
* @param string $comment the comment being added to the question attempt.
* @param number $mark the mark that is being assigned. Can be null to just
* add a comment.
* @param int $commentformat one of the FORMAT_... constants. The format of $comment.
*/
public function manual_grade($slot, $comment, $mark, $commentformat = null) {
$qa = $this->get_question_attempt($slot);
Expand Down
2 changes: 1 addition & 1 deletion question/engine/tests/unitofwork_test.php
Expand Up @@ -174,7 +174,7 @@ public function test_add_and_start_question() {

public function test_process_action() {

$this->quba->manual_grade($this->slot, 'Acutally, that is not quite right', 0.5, FORMAT_HTML);
$this->quba->manual_grade($this->slot, 'Actually, that is not quite right', 0.5, FORMAT_HTML);

// Here, however, were we are adding a step to an existing qa, we do need to track that.
$this->assertEquals(0, count($this->observer->get_attempts_added()));
Expand Down

0 comments on commit 770e4a4

Please sign in to comment.