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

Spacer image not loaded correctly when using AJAX to edit course in Moodle 2.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: JavaScript
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Line 158 of /lib/ajax/ajaxlib.php has:
      main.portal.icons['spacerimg'] = ...

      However, line 722 of /lib/ajax/section_classes.js has:
      spacer.setAttributes('src', main.portal.strings['spacerimg']);

      I assume the latter should also read '.portal.icons'.

      There is a similar bug with the main.portal.stings['groupsnone'], ['groupsseparate'] and ['groupsvisible'] lines ( 795, 798 and 801 ).

      (After a quick search through the file, these appear to be the only incorrect entries of this kind)

        Attachments

          Activity

            People

            Assignee:
            samhemelryk Sam Hemelryk
            Reporter:
            davosmith Davo Smith
            Tester:
            Nobody
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10