Closed Bug 1002611 Opened 11 years ago Closed 11 years ago

Autocomplete widget for entering email addresse of invited attendees/participants: First one in invitation dialog shows 'null', values get ignored (port bug 959209)

Categories

(Calendar :: E-mail based Scheduling (iTIP/iMIP), defect, P1)

x86_64
Windows 8.1
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aryx, Assigned: MakeMyDay)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

Lightning 3.3a1 on Windows 8.1 Last good: 20140427 https://tbpl.mozilla.org/?tree=Thunderbird-Trunk&showall=1&rev=109486fb2b22 First bad: 20140428 https://tbpl.mozilla.org/?tree=Thunderbird-Trunk&showall=1&rev=c8a51e3fbe7e When creating an event and opening the dialog for adding attendees, the autocomplete widget for entering a contact reads 'null', values entered in that field will be ignored in the New Event dialog which opened it. Seems to be a regression from bug 959209.
Priority: -- → P1
Keywords: regression
Attached patch FixBrokenAutocompleteInAttendeeDialog-V1.diff (obsolete) (deleted) β€” β€” Splinter Review
Quite simple fix. If inputValue is null, which is obviously the case for the first row without an attendee, setting input.value = inputValue breaks autocomplete, while input.setAttribute("value", inputValue) is responsible to display "null" in the textbox. Beside that, attendee autocomplete is here also affected by bug 1003856, which becomes obvious with this one fixed. Do we need to push this to aurora, too? If so, I'm requesting approval.
Assignee: nobody → makemyday
Status: NEW → ASSIGNED
Attachment #8416517 - Flags: review?(philipp)
Comment on attachment 8416517 [details] [diff] [review] FixBrokenAutocompleteInAttendeeDialog-V1.diff Review of attachment 8416517 [details] [diff] [review]: ----------------------------------------------------------------- ::: calendar/base/content/dialogs/calendar-event-dialog-attendees.xml @@ +273,5 @@ > } > > + // don't set value with null, otherwise autocomplete stops working, > + // but make sure attendee and dirty are set > + if (inputvalue) { "inputvalue" should be "inputValue". Furthermore, inputValue could also be set to "" if it fails the |if (email && email.length)| check a few lines before.
Updated patch, considering Archaeopteryx's comments.
Attachment #8416517 - Attachment is obsolete: true
Attachment #8416517 - Flags: review?(philipp)
Attachment #8416556 - Flags: review?(philipp)
Comment on attachment 8416556 [details] [diff] [review] FixBrokenAutocompleteInAttendeeDialog-V2.diff Code looks good and patch works, aside from the TB bug you pointed out. r=philipp
Attachment #8416556 - Flags: review?(philipp) → review+
What about aurora? I guess bug 959209 landed before the merge, but I'm not sure.
Yes it landed before the merge.
Attachment #8416556 - Flags: approval-calendar-aurora+
Target Milestone: --- → 3.3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: