1498e7fc5bb16c1452644aa5f73dfec937814f4a braney Thu Aug 20 10:25:33 2015 -0700 revert changes made for #6551 diff --git src/hg/lib/cart.c src/hg/lib/cart.c index 4fc0083..befec83 100644 --- src/hg/lib/cart.c +++ src/hg/lib/cart.c @@ -734,35 +734,30 @@ #endif /* GBROWSE */ if (newDatabase != NULL) { cartSetString(cart,"db", newDatabase); // this is some magic to use the defaultPosition */ cartSetString(cart,"position", "genome"); } if (exclude != NULL) { while ((ex = *exclude++)) cartExclude(cart, ex); } -// if user has clicked "default tracks" or changed assembly, reset visibilities from trackDb -boolean defaultTracks = cgiVarExists("hgt.reset"); -if (defaultTracks || (oldVars != NULL && cartValueHasChanged(cart, oldVars, "db" , FALSE, FALSE))) - cartRemove(cart, CART_HAS_DEFAULT_VISIBILITY); - cartDefaultDisconnector(&conn); return cart; } static void updateOne(struct sqlConnection *conn, char *table, struct cartDb *cdb, char *contents, int contentSize) /* Update cdb in database. */ { struct dyString *dy = newDyString(4096); sqlDyStringPrintf(dy, "UPDATE %s SET contents='", table); sqlDyAppendEscaped(dy, contents); sqlDyStringPrintf(dy, "',lastUse=now(),useCount=%d ", cdb->useCount+1); sqlDyStringPrintf(dy, " where id=%u", cdb->id);