6c35d93066d3052cc44a4bdda331b177d5536d55
chmalee
  Wed May 3 10:00:59 2023 -0700
Missing one call to setTaxId() when explicitly adding 'org' to the species name lookup, refs #31230

diff --git src/hg/js/hgGateway.js src/hg/js/hgGateway.js
index bac3494..a2dc94d 100644
--- src/hg/js/hgGateway.js
+++ src/hg/js/hgGateway.js
@@ -713,31 +713,31 @@
     // This is dbDbTree after pruning -- null if dbDbTree has no children left
     var prunedDbDbTree = null;
     // This keeps track of which gene the user has selected most recently from autocomplete.
     var selectedGene = null;
 
     function setupFavIcons() {
         // Set up onclick handlers for shortcut buttons and labels
         var haveIcon = false;
         var i, name, taxId, onClick;
         for (i = 0;  i < favIconTaxId.length;  i++) {
             name = favIconTaxId[i][0];
             taxId = favIconTaxId[i][1];
             if (activeTaxIds[taxId]) {
                 // When user clicks on icon, set the taxId (default database);
                 // scroll the image to that species and clear the species autocomplete input.
-                onClick = setTaxId.bind(null, taxId, null, true, true);
+                onClick = setTaxId.bind(null, taxId, null, null, true, true);
                 // Onclick for both the icon and its sibling label:
                 $('.jwIconSprite' + name).parent().children().click(onClick);
                 haveIcon = true;
             } else {
                 // Inactive on this site -- hide it
                 $('.jwIconSprite' + name).parent().hide();
             }
         }
         if (! haveIcon) {
             $('#popSpeciesTitle').text('Species Search');
         }
     }
 
     function addCategory(cat, item) {
         // Clone item, add category: cat to it and return it (helper function, see below).