Bug 467809 - Advanced addressbook search error when changing from "match any" to "match all", r+sr=Standard8 COMM_20081201_RELBRANCH THUNDERBIRD_3_0b1_BUILD2 THUNDERBIRD_3_0b1_RELEASE
authorPhil Ringnalda <philringnalda@gmail.com>
Thu, 04 Dec 2008 06:16:06 -0800
branchCOMM_20081201_RELBRANCH
changeset 1331 ae57fee4ac62332bdf9ae51c7ef439732bf08873
parent 1330 0ce5b9601f56fd5ddab1e71a2e9982286cc5bce3
child 1332 0bf04de2df0f2f44744c678ce288a9361b881a0a
push idunknown
push userunknown
push dateunknown
bugs467809
Bug 467809 - Advanced addressbook search error when changing from "match any" to "match all", r+sr=Standard8
mailnews/base/search/resources/content/searchTermOverlay.js
--- a/mailnews/base/search/resources/content/searchTermOverlay.js
+++ b/mailnews/base/search/resources/content/searchTermOverlay.js
@@ -290,17 +290,17 @@ function updateSearchAttributes()
         gSearchTerms[i].obj.searchattribute.refreshList();
     }
 
 function booleanChanged(event) {
     // when boolean changes, we have to update all the attributes on the search terms
     var newBoolValue = (event.target.getAttribute("value") == "and") ? true : false;
     var matchAllValue = (event.target.getAttribute("value") == "matchAll") ? true : false;
     if (document.getElementById("abPopup")) {
-      var selectedAB = document.getElementById("abPopup").selectedItem.id;
+      var selectedAB = document.getElementById("abPopup").selectedItem.value;
       setSearchScope(GetScopeForDirectoryURI(selectedAB));
     }
     for (var i=0; i<gSearchTerms.length; i++) {
         var searchTerm = gSearchTerms[i].obj;
         searchTerm.booleanAnd = newBoolValue;
         searchTerm.matchAll = matchAllValue;
     }
     var searchTerms = document.getElementById("searchTermList");