[#5595] Javascript error in templates/prefs/identityselect.inc (Firefox
Summary Javascript error in templates/prefs/identityselect.inc (Firefox
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners chuck (at) horde (dot) org
Requester veikko.immonen (at) otaverkko (dot) fi
Created 2007-08-02 (4918 days ago)
Due 08/06/2007 (4914 days ago)
Updated 2007-08-03 (4917 days ago)
Resolved 2007-08-03 (4917 days ago)
Patch No

2007-08-03 04:27:50 Chuck Hagenbuch Comment #2
Assigned to Chuck Hagenbuch
State ⇒ Resolved
Reply to this comment
Makes sense. Fixed in CVS and FW_3 - thanks!
2007-08-02 08:20:44 veikko (dot) immonen (at) otaverkko (dot) fi Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ Javascript error in templates/prefs/identityselect.inc (Firefox
Due ⇒ 2007-08-06
Queue ⇒ Horde Framework Packages
New Attachment: horde-identityselect.patch Download
Reply to this comment
I have disabled some of the fields in IMP's personal information 
options, for example the sender address field. Personal information is 
divided into multiple identities, one of which is chosen and then 
javascript populates the appropriate fields. When populating the 
fields, the script loops over the identity array, changing the values 
of the fields one by one. However, when I have some of the fields 
disabled and thus non-existent, a javascript error occurs (at least on 
Firefox, haven't tested other browsers) when trying to change 
the value of a non-existent field and the rest of the fields remain 
untouched as the browser won't continue to run the javascript.

I solved this with a simple one-liner; just check to see if the field 
actually exists before trying to mangle with it. If it doesn't, just 
skip to the next. Patch attached.

Saved Queries