-
Bug
-
Resolution: Fixed
-
Minor
-
3.0.6, 3.1.2, 3.2
-
MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_30_STABLE, MOODLE_31_STABLE
-
MDL-56019-master -
I have a wiki with an image in the description. If I call the WS get_wikis_by_courses I receive different URLs for the image.
In intro: ../mod_wiki/intro/2/Autout_200.png
In introfiles: .../mod_wiki/intro/Autout_200.png
The reason is that, in the WS, we pass $wiki->id as itemid when calling external_format_text and we shouldn't do that. We should pass null as it's done in format_module_intro.
I checked the other modules and I've seen there are others with the same problem: forum, lti, scorm.
In Moodle 3.1 and 3.0 we don't have introfiles, but I still think we should use null in intro for consistency.