696a2e28b77acdad5f799eb5aadd970f980299b7
chmalee
  Fri Oct 28 14:47:21 2022 -0700
Fix bug with previous multiTerm fix and make tree checkboxes not auto collapse on click, refs #29693

diff --git src/hg/lib/hgFind.c src/hg/lib/hgFind.c
index 1c0ff15..8bddf55 100644
--- src/hg/lib/hgFind.c
+++ src/hg/lib/hgFind.c
@@ -3377,31 +3377,31 @@
 // lastly search any included track hubs, or in the case of an assembly hub, any of the tracks
 hubCategoryList = hubCategoriesToTdbList(categories);
 struct hgFindSpec *hfs;
 for (hfs = shortList; hfs != NULL; hfs = hfs->next)
     {
     boolean foundSpec = hgFindUsingSpec(cart, db, hfs, term, limitResults, hgp, FALSE, 0, 0, multiTerm, measureTiming);
     if (foundSpec)
         hashAdd(foundSpecHash, hfs->searchTable, hfs->searchTable);
     foundIt |= foundSpec;
 
     // for multiTerm searches (like '15q11;15q13'), each individual component
     // must resolve to a single position, so break once we find the first match
     if (multiTerm && foundSpec)
         break;
     }
-if (multiTerm && !foundIt)
+if (!(multiTerm) || (multiTerm && !foundIt))
     {
     for (hfs = longList; hfs != NULL; hfs = hfs->next)
         {
         if (hashFindVal(foundSpecHash, hfs->searchTable) != NULL)
             continue;
         foundIt |= hgFindUsingSpec(cart, db, hfs, term, limitResults, hgp, FALSE, 0, 0, multiTerm, measureTiming);
         }
     // lastly search any included track hubs, or in the case of an assembly hub, any of the tracks
     if (hubCategoryList)
         foundIt |= findBigBedPosInTdbList(cart, db, hubCategoryList, term, hgp, NULL, measureTiming);
     }
 
 // multiTerm searches must resolve to a single range on a chromosome, so don't
 // do these non positional searches if a multiTerm was requested
 if (!multiTerm)