assignment MDL-24159 made glossary_reset_userdata clear glossary_alias of relevant...
authorAparup Banerjee <nebgor@gmail.com>
Mon, 20 Sep 2010 01:48:34 +0000 (01:48 +0000)
committerAparup Banerjee <nebgor@gmail.com>
Mon, 20 Sep 2010 01:48:34 +0000 (01:48 +0000)
mod/glossary/lib.php

index af05e88..6595b9a 100644 (file)
@@ -2376,6 +2376,7 @@ function glossary_reset_userdata($data) {
 
         $params[] = 'glossary_entry';
         $DB->delete_records_select('comments', "itemid IN ($allentriessql) AND commentarea=?", $params);
+        $DB->delete_records_select('glossary_alias',    "entryid IN ($allentriessql)", $params);
         $DB->delete_records_select('glossary_entries', "glossaryid IN ($allglossariessql)", $params);
 
         // now get rid of all attachments