0fb705cbf681edeeab839d8d720c9f18d6fa0afb
tdreszer
  Mon Nov 14 16:23:08 2011 -0800
Fixed mrna schema bug 5990.
diff --git src/hg/hgTables/schema.c src/hg/hgTables/schema.c
index c72b5bf..810b350 100644
--- src/hg/hgTables/schema.c
+++ src/hg/hgTables/schema.c
@@ -674,30 +674,32 @@
         {
 	struct trackDb *sTdb = tdbRef->val;
         if (sameString(sTdb->table, curTable))
             return TRUE;
         }
     }
 return FALSE;
 }
 
 void doSchema(struct sqlConnection *conn)
 /* Show schema around current track. */
 {
 if (curTrackDescribesCurTable())
     {
     struct trackDb *track = curTrack;
+    if (!hashFindVal(fullTrackAndSubtrackHash, track->table))
+        hashAdd(fullTrackAndSubtrackHash, track->table, track);
     char *table = connectingTableForTrack(curTable);
     htmlOpen("Schema for %s - %s", track->shortLabel, track->longLabel);
     showSchema(database, curTrack, table);
     htmlClose();
     }
 else
     doTableSchema(database, curTable, conn);
 }
 
 struct asObject *asForTable(struct sqlConnection *conn, char *table)
 /* Get autoSQL description if any associated with table. */
 /* Wrap some error catching around asForTable. */
 {
 struct trackDb *tdb = NULL;
 if (isCustomTrack(table))  // Why isn't custom track in fullTrackAndSubtrackHash?