From df56998ab16a1f17a50a7ff7afc99c1e1d4778ae Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Fri, 10 Nov 2006 01:27:51 +0000 Subject: [PATCH] need to pass course as customdata to form definition --- course/modedit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5