370cc36518fec8f45d0053dec74a4af6ac7ff0cb
braney
  Thu Dec 11 09:12:31 2025 -0800
in bigBed click handling, if the trackDb type has a field number in it
make sure it's the same as the one in the bigBed itself, otherwise
print an error.

diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index 3604883f573..1b68a0028f0 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -4993,32 +4993,36 @@
 	}
     else if (sameString(type, "bedMethyl"))
 	{
         genericBedClick(conn, tdb, item, start, 9);
 	}
     else if (sameString(type, "bigGenePred"))
         {
 	int num = 12;
         genericBigBedClick(conn, tdb, item, start, end, num);
 	}
     else if (sameString(type, "bigBed"))
         {
         boolean bigBedOnePath = cfgOptionBooleanDefault("bigBedOnePath", FALSE);
 
         if (bigBedOnePath)
-            // always set field count using definedFieldCount in bigBed
-            genericBigBedClick(conn, tdb, item, start, end, 0);
+            {
+            int num = 0;
+            if (wordCount > 1)
+                num = atoi(words[1]);
+            genericBigBedClick(conn, tdb, item, start, end, num);
+            }
         else
             {
             int num = 0;
             if (wordCount > 1)
                 num = atoi(words[1]);
             if (num < 3) num = 3;
             genericBigBedClick(conn, tdb, item, start, end, num);
             }
 	}
     else if (sameString(type, "sample"))
 	{
 	int num = 9;
         genericSampleClick(conn, tdb, item, start, num);
 	}
     else if (sameString(type, "genePred"))