Bug 609996 - search.xml autocomplete needs tweak to be cleanly extensible; r=asuth
authorDavid Ascher <david.ascher@gmail.com>
Tue, 09 Nov 2010 08:57:04 +0000
changeset 6671 848ebd9d7828f3258068e3b2652fff7c52b3e1f1
parent 6670 75a27f4896159e652ee612565af4640912bb1562
child 6672 b0a859bb2d89a311bed00070ef19c66e84eea080
push idunknown
push userunknown
push dateunknown
reviewersasuth
bugs609996
Bug 609996 - search.xml autocomplete needs tweak to be cleanly extensible; r=asuth
mail/base/content/search.xml
--- a/mail/base/content/search.xml
+++ b/mail/base/content/search.xml
@@ -244,17 +244,17 @@
             if (row == null)
               return;
             let theQuery = Gloda.newQuery(Gloda.NOUN_MESSAGE);
             let tabmail = document.getElementById("tabmail");
             if (row.fullText) {
               tabmail.openTab("glodaFacet", {
                 searcher: new GlodaMsgSearcher(null, row.item, row.andTerms)
               });
-            } else {
+            } else if (row.nounDef) {
               if (row.nounDef.name == "tag") {
                 theQuery = theQuery.tags(row.item);
               } else if (row.nounDef.name == "identity") {
                 theQuery = theQuery.involves(row.item);
               }
               theQuery.orderBy('-date');
               tabmail.openTab("glodaFacet", {
                 query: theQuery