mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #02164
[Bug 675730] [NEW] Embedded images not displayed in LEAP2A imported content
Public bug reported:
During testing Mahara repository plugin in Moodle 2.0, I discovered that
images embedded into a Moodle forum post (that is then exported via
LEAP2A into Mahara) are not displayed in the created Mahara blog post.
If I export the post into leap2a.xml, the embedded image is exported
into:
<img src="portfolio:storedfile816" alt="" width="100"
height="100" rel="enclosure"/>
and then again in the 'attachments' section into:
<img rel="enclosure" src="portfolio:storedfile816"/>
the entry portfolio:storedfile816 and <link rel="related"
href="portfolio:storedfile816"/> are created correctly.
However, the import code in Mahara relies on the exact argument order in
the <img> tag and therefore only the img in attachments section is
converted correctly. See import/leap/lib.php, private function
fix_artefact_reference, the $match pattern.
To reproduce, your Moodle must be patched to fix MDL-23978.
** Affects: mahara
Importance: Undecided
Status: New
** Tags: leap2a
--
Embedded images not displayed in LEAP2A imported content
https://bugs.launchpad.net/bugs/675730
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Status in Mahara ePortfolio: New
Bug description:
During testing Mahara repository plugin in Moodle 2.0, I discovered that images embedded into a Moodle forum post (that is then exported via LEAP2A into Mahara) are not displayed in the created Mahara blog post.
If I export the post into leap2a.xml, the embedded image is exported into:
<img src="portfolio:storedfile816" alt="" width="100" height="100" rel="enclosure"/>
and then again in the 'attachments' section into:
<img rel="enclosure" src="portfolio:storedfile816"/>
the entry portfolio:storedfile816 and <link rel="related" href="portfolio:storedfile816"/> are created correctly.
However, the import code in Mahara relies on the exact argument order in the <img> tag and therefore only the img in attachments section is converted correctly. See import/leap/lib.php, private function fix_artefact_reference, the $match pattern.
To reproduce, your Moodle must be patched to fix MDL-23978.
Follow ups
References