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 |
Assigned to Chuck Hagenbuch
State ⇒ Resolved
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
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.