Closed Bug 37202 Opened 26 years ago Closed 26 years ago

unable to send message addressed to multiple addressees

Categories

(MailNews Core :: Composition, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sspitzer, Assigned: bugzilla)

Details

one address line, no problem. multiple lines, you get this problem: JavaScript error: chrome://messenger/content/messengercompose/addressingWidgetOverlay.js line 65: awGetPopupElement(i).selectedItem has no properties and you can't send. checked in a patch, so now you you can send. this goes to the console: failed: TypeError: awGetPopupElement(i).selectedItem has no properties failed: TypeError: awGetPopupElement(i).selectedItem has no properties this needs to be fixed I'll attach the patch I checked in.
here's what I checked in. ducarroz, please fix the real problem. Index: resources/content/addressingWidgetOverlay.js =================================================================== RCS file: /cvsroot/mozilla/mailnews/compose/resources/content/addressingWidgetOverlay.js, v retrieving revision 1.16 diff -p -r1.16 addressingWidgetOverlay.js *** addressingWidgetOverlay.js 2000/04/25 21:31:51 1.16 --- addressingWidgetOverlay.js 2000/04/26 03:20:57 *************** function Recipients2CompFields(msgCompFi *** 62,68 **** fieldValue = inputField.value; if (fieldValue != "") { ! switch (awGetPopupElement(i).selectedItem.getAttribute("data")) { case "addr_to" : addrTo += to_Sep + fieldValue; to_Sep = ","; break; case "addr_cc" : addrCc += cc_Sep + fieldValue; cc_Sep = ","; break; --- 62,75 ---- fieldValue = inputField.value; if (fieldValue != "") { ! var data = "addr_to"; ! try { ! data = awGetPopupElement(i).selectedItem.getAttribute("data"); ! } ! catch (ex) { ! dump("failed: " + ex + "\n"); ! } ! switch (data) { case "addr_to" : addrTo += to_Sep + fieldValue; to_Sep = ","; break; case "addr_cc" : addrCc += cc_Sep + fieldValue; cc_Sep = ","; break; *************** function awTabFromRecipient(element, eve *** 411,414 **** function awGetNumberOfRecipients() { return top.MAX_RECIPIENTS; ! } \ No newline at end of file --- 418,421 ---- function awGetNumberOfRecipients() { return top.MAX_RECIPIENTS; ! }
The problem occurs only if you have never touched the recipient type popou menu of the new added recipient row. Work ok with replied messages. Fixed and checked in.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Target Milestone: --- → M16
I think this is similar to what esther had filed. Regardless, glad it is fixed.
QA Contact: lchiang → esther
Using commercial win98 build 2000-04-26-11 and linux 2000-04-26-09 and mac mozilla build this is fixed. Verified. BTW...my similar bug is 37119 and it's fixed too.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.