From 432a68805a0313631b5ae514b2ac0f2f8a1e455e Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Tue, 24 Jul 2012 10:18:15 +0800 Subject: [PATCH] MDL-34239 Blog: Editing blog associated with module will be keep it's association --- blog/edit_form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/blog/edit_form.php b/blog/edit_form.php index dac9d311fad..a6fa4a1ed2b 100644 --- a/blog/edit_form.php +++ b/blog/edit_form.php @@ -101,6 +101,7 @@ class blog_edit_form extends moodleform { $a = new stdClass(); $a->modtype = $DB->get_field('modules', 'name', array('id' => $cm->module)); $a->modname = $DB->get_field($a->modtype, 'name', array('id' => $cm->instance)); + $modid = $context->instanceid; } $mform->addElement('header', 'assochdr', get_string('associations', 'blog'));