Skip to content

Commit

Permalink
Merge branch 'MDL-45365-25' of git://github.com/damyon/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_25_STABLE
  • Loading branch information
danpoltawski committed May 1, 2014
2 parents 053953a + fde2e1c commit e8839b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion course/tests/courselib_test.php
Expand Up @@ -137,7 +137,8 @@ private function assign_create_run_asserts($moduleinfo, $dbmodinstance) {
// The goal not being to fully test assign_add_instance() we'll stop here for the assign tests - to avoid too many DB queries.

// Advanced grading.
$contextmodule = context_module::instance($dbmodinstance->id);
$cm = get_coursemodule_from_instance('assign', $dbmodinstance->id);
$contextmodule = context_module::instance($cm->id);
$advancedgradingmethod = $DB->get_record('grading_areas',
array('contextid' => $contextmodule->id,
'activemethod' => $moduleinfo->advancedgradingmethod_submissions));
Expand Down

0 comments on commit e8839b4

Please sign in to comment.