From: skodak Date: Sun, 3 Jun 2007 10:10:40 +0000 (+0000) Subject: MDL-9549 fixed deleting of instance X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b01abc85e49a353edc08c0dbdbbf9d86219c177d;p=moodle.git MDL-9549 fixed deleting of instance --- diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 2b11a189be..f8c7e1579c 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -145,6 +145,8 @@ function glossary_delete_instance($id) { return false; } + $glossary->courseid = $glossary->course; + $result = true; # Delete any dependent records here #