e2e920776dddac39896fdb4aebae84a12bcb52b1
kate
  Tue May 9 11:06:33 2017 -0700
Add table browwser support for barChart custom tracks. refs #18736

diff --git src/hg/hgTables/joining.c src/hg/hgTables/joining.c
index c1bd3ab..82305bc 100644
--- src/hg/hgTables/joining.c
+++ src/hg/hgTables/joining.c
@@ -266,31 +266,34 @@
 struct slName *fieldList = sqlListFields(conn, split);
 makeOrderedCommaFieldList(fieldList, dtfList, dy);
 slFreeList(&fieldList);
 freez(&split);
 }
 
 static void makeCtOrderedCommaFieldList(struct joinerDtf *dtfList, 
 	struct dyString *dy)
 /* Make comma-separated field list in same order as fields are in
  * custom track. */
 {
 char *track = dtfList->table;
 struct customTrack *ct = ctLookupName(track);
 char *type = ct->dbTrackType;
 struct slName *fieldList = NULL;
-if (startsWithWord("makeItems", type) || sameWord("bedDetail", type) || sameWord("pgSnp", type))
+if (startsWithWord("makeItems", type) || 
+        sameWord("bedDetail", type) || 
+        sameWord("barChart", type) || 
+        sameWord("pgSnp", type))
     {
     struct sqlConnection *conn = hAllocConn(CUSTOM_TRASH);
     fieldList = sqlListFields(conn, ct->dbTableName);
     hFreeConn(&conn);
     }
 else
     {
     fieldList = getBedFields(15);
     }
 makeOrderedCommaFieldList(fieldList, dtfList, dy);
 slFreeList(&fieldList);
 }
 
 static void makeBigBedOrderedCommaFieldList(struct joinerDtf *dtfList,
 	struct dyString *dy)