From: jamiesensei Date: Fri, 10 Nov 2006 01:27:51 +0000 (+0000) Subject: need to pass course as customdata to form definition X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=df56998ab16a1f17a50a7ff7afc99c1e1d4778ae;p=moodle.git need to pass course as customdata to form definition --- diff --git a/course/modedit.php b/course/modedit.php index 558977eb35..0729b5723b 100644 --- a/course/modedit.php +++ b/course/modedit.php @@ -119,7 +119,7 @@ } $mformclassname=$module->name.'_mod_form'; - $mform=& new $mformclassname('modedit.php'); + $mform=& new $mformclassname('modedit.php', array('course' => $course)); if ($fromform=$mform->data_submitted()){ if (empty($fromform->coursemodule)) { //add