bd83334864d00974729eac73a1411f0b583c6c87
angie
  Mon Sep 12 15:15:41 2022 -0700
Add hidden input to set db correctly when only one db is supported.

diff --git src/hg/hgPhyloPlace/hgPhyloPlace.c src/hg/hgPhyloPlace/hgPhyloPlace.c
index 6e1678e..9b48273 100644
--- src/hg/hgPhyloPlace/hgPhyloPlace.c
+++ src/hg/hgPhyloPlace/hgPhyloPlace.c
@@ -104,30 +104,32 @@
     struct slName *sDb;
     int i;
     for (sDb = supportedDbs, i = 0;  i < supportedDbCount;  sDb = sDb->next, i++)
         {
         values[i] = sDb->name;
         labels[i] = labelForDb(values[i]);
         }
     char *selectVar = "db";
     struct dyString *dy = jsOnChangeStart();
     jsDropDownCarryOver(dy, selectVar);
     char *js = jsOnChangeEnd(&dy);
     puts("<p>Choose your pathogen: ");
     cgiMakeDropListFull(selectVar, labels, values, supportedDbCount, *pDb, "change", js);
     puts("</p>");
     }
+else
+    cgiMakeHiddenVar("db", *pDb);
 slNameFreeList(&supportedDbs);
 }
 
 static void newPageStartStuff()
 {
 // Copied these from hgGtexTrackSettings.c which says "// NOTE: This will likely go to web.c".
 puts("<link rel='stylesheet' href='../style/gb.css'>");
 puts("<link rel='stylesheet' href='../style/hgGtexTrackSettings.css'>");
 
 //#*** TODO: move this out to a CSS (hardcoding for now because we're doing a standalone push
 //#*** independent of the release cycle).
 puts("<style>\n"
 "#warnBox {\n"
 "    border: 3px ridge DarkRed;\n"
 "    width:640px;\n"