Merge branch 'MDL-50171-master' of git://github.com/jleyva/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 22 Jun 2015 23:42:47 +0000 (01:42 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 22 Jun 2015 23:42:47 +0000 (01:42 +0200)
mod/data/classes/external.php

index b063417..d45977d 100644 (file)
@@ -128,7 +128,7 @@ class mod_data_external extends external_api {
                 // Format intro.
                 list($newdb['intro'], $newdb['introformat']) =
                     external_format_text($database->intro, $database->introformat,
-                                            $datacontext->id, 'mod_data', 'intro', $database->id);
+                                            $datacontext->id, 'mod_data', 'intro', null);
 
                 // This information should be only available if the user can see the database entries.
                 if (has_capability('mod/data:viewentry', $datacontext)) {