6.0.0-beta1
7/5/25

[#5595] Javascript error in templates/prefs/identityselect.inc (Firefox 2.0.0.5)
Summary Javascript error in templates/prefs/identityselect.inc (Firefox 2.0.0.5)
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 08/02/2007 (6547 days ago)
Due 08/06/2007 (6543 days ago)
Updated 08/03/2007 (6546 days ago)
Assigned
Resolved 08/03/2007 (6546 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/03/2007 04:27:50 AM Chuck Hagenbuch Comment #2
Assigned to Chuck Hagenbuch
State ⇒ Resolved
Reply to this comment
Makes sense. Fixed in CVS and FW_3 - thanks!
08/02/2007 08:20:44 AM veikko (dot) immonen (at) otaverkko (dot) fi Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Javascript error in templates/prefs/identityselect.inc (Firefox 2.0.0.5)
Due ⇒ 08/06/2007
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 2.0.0.5, 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