d9b708e09efd7a685da75ba1ffbb28a6174fb4d4 braney Fri Jul 23 15:42:06 2021 -0700 fix up hgFind search so second pass generates a search page even if there are 0 or 1 results from the non-short circuit search diff --git src/hg/lib/hgFind.c src/hg/lib/hgFind.c index a161fc4..df2add9 100644 --- src/hg/lib/hgFind.c +++ src/hg/lib/hgFind.c @@ -2005,30 +2005,31 @@ 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 = hCarefulTrackOpenVisCart(cart, db, trackName); boolean excludeTable = FALSE; if(!containerDivPrinted) { fprintf(f, "
Your search resulted in multiple matches. " "Please select a position:
\n"); containerDivPrinted = TRUE; } if (table->htmlStart) table->htmlStart(table, f); else fprintf(f, "\n", table->description); for (pos = table->posList; pos != NULL; pos = pos->next) { if (table->htmlOnePos) table->htmlOnePos(table, pos, f); else { char *matches = excludeTable ? "" : pos->browserName;