Bug 506199 - Filter rules dialog is corrupted when there are many rules (Error: Missing custom search term undefined, Error: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIStringBundle.GetStringFromName] at mailWidgets.xml::get_valueLabel::line 1086); r=neil sr=bienvenu
authorKent James <kent@caspia.com>
Sun, 16 Aug 2009 15:38:02 +0200
changeset 3313 1d473ed592a04a75790b24c77c04dd7bff284203
parent 3312 32d7e909c526fd0b628da2d45bc3a26758c2a39a
child 3314 130c2798990c86252fc329aeb68113c60590b455
push idunknown
push userunknown
push dateunknown
reviewersneil, bienvenu
bugs506199
Bug 506199 - Filter rules dialog is corrupted when there are many rules (Error: Missing custom search term undefined, Error: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIStringBundle.GetStringFromName] at mailWidgets.xml::get_valueLabel::line 1086); r=neil sr=bienvenu
mail/base/content/mailWidgets.xml
suite/mailnews/mailWidgets.xml
--- a/mail/base/content/mailWidgets.xml
+++ b/mail/base/content/mailWidgets.xml
@@ -926,17 +926,17 @@
               popup.appendChild(menuitem);
             }
             //
             // If we are either uninitialized, or if we are called because
             // of a change in our parent, update the value to the
             // default stored in newSelection.
             //
             if ((this.value == -1 || dontRestore) && newSelection)
-              this.value = newSelection.value;
+              this.value = newSelection.getAttribute("value");
             menulist.selectedItem = this.validMenuitem;
           ]]>
         </body>
       </method>
       <method name="onSelect">
         <parameter name="event"/>
         <body>
           <![CDATA[
--- a/suite/mailnews/mailWidgets.xml
+++ b/suite/mailnews/mailWidgets.xml
@@ -902,17 +902,17 @@
               popup.appendChild(menuitem);
             }
             //
             // If we are either uninitialized, or if we are called because
             // of a change in our parent, update the value to the
             // default stored in newSelection.
             //
             if ((this.value == -1 || dontRestore) && newSelection)
-              this.value = newSelection.value;
+              this.value = newSelection.getAttribute("value");
             menulist.selectedItem = this.validMenuitem;
           ]]>
         </body>
       </method>
       <method name="onSelect">
         <parameter name="event"/>
         <body>
           <![CDATA[