93f1aea8db760b6d02766ab35413a0c3e2a63df8
braney
  Tue Oct 10 11:16:09 2017 -0700
fix hgc clicks on custom tracks in collections

diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index 2bba36b..b16a0f9 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -25904,30 +25904,36 @@
     }
 else if (sameWord(table, USER_PSL_TRACK_NAME))
     {
     doUserPsl(table, item);
     }
 else if (sameWord(table, PCR_RESULT_TRACK_NAME))
     {
     doPcrResult(table, item);
     }
 else if (sameWord(table, "softPromoter"))
     {
     hgSoftPromoter(table, item);
     }
 else if (isCustomTrack(table))
     {
+    if (tdb != NULL)
+        {
+        char *origTrackName = trackDbSetting(tdb, "origTrackName");
+        if (origTrackName)
+            table = origTrackName;
+        }
     hgCustom(table, item);
     }
 else if (sameWord(table, "snpTsc") || sameWord(table, "snpNih") || sameWord(table, "snpMap"))
     {
     doSnpOld(tdb, item);
     }
 else if (sameWord(table, "snp"))
     {
     doSnp(tdb, item);
     }
 else if (snpVersion(table) >= 125)
     {
     doSnpWithVersion(tdb, item, snpVersion(table));
     }
 else if (sameWord(table, "cnpIafrate"))