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

old_onload_focus crashing forum reply page javascript

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: General, Repositories
    • Labels:
      None
    • Environment:
      Google Chrome and Firefox 3 for Linux
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      When I visit a forum thread and click reply on head, I get a javascript error in Google Chrome and Firefox:

      document.forms[formid].elements[controlname] is undefined on lib/javascript-static.js on line 1166

      The attached patch fixes it, though it's not particularly well thought out.

        Attachments

          Activity

            People

            • Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              nigel Nigel McNie
              Tester:
              Nobody
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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