← Back to team overview

mahara-contributors team mailing list archive

[Bug 675730] Re: Embedded images not displayed in LEAP2A imported content

 

** Changed in: mahara
    Milestone: None => 1.4.0

** Changed in: mahara
   Importance: Undecided => High

** Changed in: mahara
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/675730

Title:
  Embedded images not displayed in LEAP2A imported content

Status in Mahara ePortfolio:
  Triaged

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.





References