025bb848de51cd3dc938c0b691909401aac4022f braney Wed May 16 11:49:11 2018 -0700 fix RM#21172 (show schema on custom tracks on assembly hubs) diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c index 1cc52e4..bdd2762 100644 --- src/hg/lib/hdb.c +++ src/hg/lib/hdb.c @@ -5422,32 +5422,32 @@ "select moddate from %s where (acc = '%s')",gbCdnaInfoTable, acc); return sqlQuickString(conn, query); } struct trackDb *findTdbForTable(char *db,struct trackDb *parent,char *table, struct customTrack *(*ctLookupName)(char *table)) /* Find or creates the tdb for this table. Might return NULL! (e.g. all tables) * References an externally defined function ctLookupName() which looks up a * custom track by name * If this is a custom track, pass in function ctLookupName(table) which looks up a * custom track by name, otherwise pass NULL */ { if(isEmpty(table)) return parent; -// hub tracks aren't in the trackDb hash, just use the parent tdb -if (isHubTrack(table)) +// hub tracks and custom tracks on hubs aren't in the trackDb hash, just use the parent tdb +if (isHubTrack(table) || isHubTrack(db)) return parent; struct trackDb *tdb = NULL; if (isCustomTrack(table)) { if (!ctLookupName) errAbort("No custom track lookup function provided\n"); struct customTrack *ct = (*ctLookupName)(table); if (ct != NULL) tdb = ct->tdb; } else { char *track = hGetTrackForTable(db, table); if (track == NULL)