Issue Details (XML | Word | Printable)

Key: MDL-20662
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Sam Hemelryk
Reporter: Nigel McNie
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

old_onload_focus crashing forum reply page javascript

Created: 29/Oct/09 01:38 PM   Updated: 29/Oct/09 03:50 PM
Component/s: General, Repository API
Affects Version/s: 2.0
Fix Version/s: 2.0

File Attachments: 1. Text File old-onload-focus-fix.patch (0.5 kB)

Environment: Google Chrome and Firefox 3 for Linux

Participants: Nigel McNie and Sam Hemelryk
Security Level: None
Resolved date: 29/Oct/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
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.



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Sam Hemelryk added a comment - 29/Oct/09 03:50 PM
Hi Nigel, thanks for the patch, can confirm it resolves this issue and have just commited it now