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

Gradebook: XML Parsing Error - duplicate title attribute (possible patch attached)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      I'm not sure what is intended here for the effect; however, what exists is causing an error. Take a look at lines 1066-1068 and 1108-1110 of /grade/lib.php.

      $action = '<a href="'.$url.'"><img src="'.$CFG->pixpath.'/t/' . $icon . '.gif" title="' . $tooltip
      . '" class="iconsmall" alt="'.$strunlock
      . '" title="'.$strunlock.'"/></a>';

      What do we want the title to be? My guess would be that it should be:

      $action = '<a href="'.$url.'"><img src="'.$CFG->pixpath.'/t/' . $icon . '.gif" alt="' . $tooltip
      . '" class="iconsmall" title="'.$strunlock.'"/></a>';

      similarly for 1066-1068.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            aborrow Anthony Borrow
            Tester:
            Nobody Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08