Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-13654

Multilang filter fails to pick up on multilang spans due to ordering of span attributes lang and multilang. 'Update this Resource' need to be pessed twice.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 1.7.3
    • Filters
    • None
    • Windows XP, PHP4.4.7
    • MOODLE_17_STABLE

      This bug I discovered when editing a web page resource.

      Given a page with the following code:

      <span class="multilang" lang="en">English text</span><span class="multilang" lang="fr">French Text</span>

      on clicking Save changes the resource displays (Both language texts):
      English Text
      French Text

      Checking the resource by clicking 'Update this Resource' the code has change to:

      <span lang="en" class="multilang">English text</span><span lang="fr" class="multilang">French Text</span>

      The lang attribute becomes the first attribute in both spans. On clicking save changes again the text displays correctly.

      The ideal fix for this would be that the attributes are reordered correctly and saved before the page language is read so as not to have to go back and save the resouce again. I suspect the that the reordering takes place when you open the resouce for update the second time.

            dougiamas Martin Dougiamas
            andakh Andrew Akhtar (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.