MDL-26546 Workshop: fixed embedded images in Number of errors grading form
authorDavid Mudrak <david@moodle.com>
Tue, 22 Feb 2011 21:19:16 +0000 (22:19 +0100)
committerDavid Mudrak <david@moodle.com>
Tue, 22 Feb 2011 21:19:16 +0000 (22:19 +0100)
Because of this typo, embedded images were not loaded when the
assessment form was re-edited. Thanks Helen Foster for spotting this.

mod/workshop/form/numerrors/lib.php

index 078dd61..f43d175 100644 (file)
@@ -124,7 +124,7 @@ class workshop_numerrors_strategy implements workshop_strategy {
         for ($i = 0; $i < $nodimensions; $i++) {
             // prepare all editor elements
             $fields = file_prepare_standard_editor($fields, 'description__idx_'.$i, $this->descriptionopts,
-                $PAGE->context, 'workshopform_numerror', 'description', $fields->{'dimensionid__idx_'.$i});
+                $PAGE->context, 'workshopform_numerrors', 'description', $fields->{'dimensionid__idx_'.$i});
         }
 
         $customdata = array();