04edcd636175005f068147a9f69f6dca4c794fcd
braney
  Fri Jun 20 11:41:02 2014 -0700
fix a bug that Angie found in bigBed track item search
diff --git src/hg/lib/hgFind.c src/hg/lib/hgFind.c
index a0ccd69..639811b 100644
--- src/hg/lib/hgFind.c
+++ src/hg/lib/hgFind.c
@@ -2434,30 +2434,34 @@
 struct trackDb *tdbList = NULL;
 
 if (useWeb)
     {
     webStart(cart, db, "Select Position");
     db = cartString(cart, "db");
     }
 
 for (table = hgp->tableList; table != NULL; table = table->next)
     {
     if (table->posList != NULL)
 	{
 	char *tableName = table->name;
 	if (startsWith("all_", tableName))
 	    tableName += strlen("all_");
+
+	// clear the tdb cache if this track is a hub track
+	if (isHubTrack(tableName))
+	    tdbList = NULL;
 	struct trackDb *tdb = tdbForTrack(db, tableName, &tdbList);
 	if (!tdb)
             errAbort("no track for table \"%s\" found via a findSpec", tableName);
 	char *trackName = tdb->track;
 	char *vis = hCarefulTrackOpenVis(db, trackName);
 	boolean excludeTable = FALSE;
         if(!containerDivPrinted)
             {
             fprintf(f, "<div id='hgFindResults'>\n");
             containerDivPrinted = TRUE;
             }
 	if (table->htmlStart) 
 	    table->htmlStart(table, f);
 	else
 	    fprintf(f, "<H2>%s</H2><PRE>\n", table->description);