27f7309bec43391b3ee5370a6b6b3fb0be1e579f jcasper Wed May 13 23:33:54 2026 -0700 Fixing an issue where a select and its parent td had the same name, so options in track search and file search were getting false counts of 0 applied. refs #37556 diff --git src/hg/cgilib/search.c src/hg/cgilib/search.c index 20f82b30096..3995e31ec54 100644 --- src/hg/cgilib/search.c +++ src/hg/cgilib/search.c @@ -229,31 +229,31 @@ // Left side select of vars dropDownHtml = cgiMakeSingleSelectDropList(buf, mdbVars,mdbSelect->name, NULL,"mdbVar", "change", "findTracks.mdbVarChanged(this);", "font-size:.9em;", NULL); if (dropDownHtml) { dyStringAppend(output,dropDownHtml); freeMem(dropDownHtml); } // Right side select of vals safef(buf, sizeof(buf), "%s%i", METADATA_VALUE_PREFIX, row); enum cvSearchable searchBy = cvSearchMethod(mdbSelect->name); if (searchBy == cvSearchBySingleSelect || searchBy == cvSearchByMultiSelect) { dyStringPrintf(output,"</td>\n<td align='right' id='isLike%i' style='width:10px; " - "white-space:nowrap;'>is%s</td>\n<td nowrap id='%s' " + "white-space:nowrap;'>is%s</td>\n<td nowrap id='%s_td' " "style='max-width:600px;'>\n", row,(searchBy == cvSearchByMultiSelect?" among":""),buf); struct slPair *pairs = mdbValLabelSearch(conn, mdbSelect->name, MDB_VAL_STD_TRUNCATION, FALSE, !fileSearch, fileSearch); // not tags, either a file or table search if (slCount(pairs) > 0) { char *dropDownHtml = cgiMakeSelectDropList((searchBy == cvSearchByMultiSelect), buf, pairs,mdbSelect->val, ANYLABEL,"mdbVal", "change", "findTracks.mdbValChanged(this);", "min-width:200px; font-size:.9em;", NULL); if (dropDownHtml) { dyStringAppend(output,dropDownHtml); freeMem(dropDownHtml);