Moodle

old_onload_focus crashing forum reply page javascript

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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.

Activity

Hide
Sam Hemelryk added a comment -

Hi Nigel, thanks for the patch, can confirm it resolves this issue and have just commited it now

Show
Sam Hemelryk added a comment - Hi Nigel, thanks for the patch, can confirm it resolves this issue and have just commited it now

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: