5f810f9181ad6941961257f9dca2cedc9857969f angie Wed Mar 11 01:01:35 2015 -0700 Fixing a few cases of assuming the database is in mysql (could be assembly hub!). diff --git src/hg/lib/cartJson.c src/hg/lib/cartJson.c index 67deacf..0264433 100644 --- src/hg/lib/cartJson.c +++ src/hg/lib/cartJson.c @@ -223,31 +223,33 @@ /* Update position in cart, after performing lookup if necessary. * Usually we don't report what we just changed, but since we might modify it, * print out the final value. */ { char *newPosition = cartJsonRequiredParam(paramHash, "newValue", cj->jw, "changePosition"); if (newPosition) changePosition(cj, newPosition); } static void printGeneSuggestTrack(struct cartJson *cj, char *db) /* Get the gene track used by hgSuggest for db (defaulting to cart db), or null if * there is none for this assembly. */ { if (isEmpty(db)) db = cartString(cj->cart, "db"); -char *track = assemblyGeneSuggestTrack(db); +char *track = NULL; +if (! trackHubDatabase(db)) + track = assemblyGeneSuggestTrack(db); jsonWriteString(cj->jw, "geneSuggestTrack", track); } static void getGeneSuggestTrack(struct cartJson *cj, struct hash *paramHash) /* Get the gene track used by hgSuggest for db (defaulting to cart db), or null if * there is none for this assembly. */ { char *db = cartJsonOptionalParam(paramHash, "db"); printGeneSuggestTrack(cj, db); } static void getVar(struct cartJson *cj, struct hash *paramHash) /* Print out the requested cart var(s). varString may be a comma-separated list. * If a var is a list variable, prints out a list of values for that var. */ {