MDL-33464: Do not create a grade item on upgrade (mod_assign) because we already...
authorDamyon Wiese <damyon.wiese@netspot.com.au>
Thu, 14 Jun 2012 01:14:40 +0000 (09:14 +0800)
committerDamyon Wiese <damyon.wiese@netspot.com.au>
Thu, 14 Jun 2012 01:14:40 +0000 (09:14 +0800)
mod/assign/upgradelib.php

index c50e873..eebfe57 100644 (file)
@@ -219,7 +219,6 @@ class assign_upgrade_manager {
             }
 
             $newassignment->update_calendar($newcoursemodule->id);
-            $newassignment->update_gradebook(false,$newcoursemodule->id);
 
             // copy the grades from the old assignment to the new one
             $DB->set_field('grade_items', 'itemmodule', 'assign', array('iteminstance'=>$oldassignment->id));