From: Mike G. v. a. <we...@ma...> - 2008-10-03 13:26:43
|
Log Message: ----------- corrected error in localib that left out the wwassignmentid when creating an event Modified Files: -------------- wwmoodle/wwassignment4/moodle/mod/wwassignment: locallib.php version.php Revision Data ------------- Index: version.php =================================================================== RCS file: /webwork/cvs/system/wwmoodle/wwassignment4/moodle/mod/wwassignment/version.php,v retrieving revision 1.2 retrieving revision 1.3 diff -Lwwassignment4/moodle/mod/wwassignment/version.php -Lwwassignment4/moodle/mod/wwassignment/version.php -u -r1.2 -r1.3 --- wwassignment4/moodle/mod/wwassignment/version.php +++ wwassignment4/moodle/mod/wwassignment/version.php @@ -8,5 +8,4 @@ $module->version = 2008092818; // The current module version (Date: YYYYMMDDXX) $module->requires = 2007101509; // Requires this Moodle version $module->cron = 300; // Period for cron to check this module (secs) -- every 5 minutes - ?> \ No newline at end of file Index: locallib.php =================================================================== RCS file: /webwork/cvs/system/wwmoodle/wwassignment4/moodle/mod/wwassignment/locallib.php,v retrieving revision 1.8 retrieving revision 1.9 diff -Lwwassignment4/moodle/mod/wwassignment/locallib.php -Lwwassignment4/moodle/mod/wwassignment/locallib.php -u -r1.8 -r1.9 --- wwassignment4/moodle/mod/wwassignment/locallib.php +++ wwassignment4/moodle/mod/wwassignment/locallib.php @@ -90,6 +90,7 @@ $event->userid = 0; $event->format = 1; $event->modulename = 'wwassignment'; + $event->instance = $wwassignmentid; $event->visible = 1; $event->name .= ' is Due.'; $event->eventtype = 'due'; @@ -98,7 +99,7 @@ // error_log("adding a due event"); $result = 0; - if(!add_event($dueevent)) { + if(!add_event($event)) { $result = -1; } return $result; |