84688c95e385ee526a59d7dac8f6ff644781361b braney Sat Aug 2 11:11:57 2025 -0700 ongoing work on quickLift. Made saved sessions work a little more rationally diff --git src/hg/lib/cart.c src/hg/lib/cart.c index bd3a718ac48..6f6e1fa1e6e 100644 --- src/hg/lib/cart.c +++ src/hg/lib/cart.c @@ -486,31 +486,32 @@ // need to change hgtgroup_hub_#hubNumber# (blue bar open ) // need to change expOrder_hub_#hubNumber#, simOrder_hub_#hubNumber# (sorting) -- values too // need to change trackHubs #hubNumber# cartSetString(cart, hgHubConnectRemakeTrackHub, "on"); cartSetString(cart, hubFileVar, newHubUrl); } void cartCopyLocalHubs(struct cart *cart) /* Find any custom composite hubs and copy them so they can be modified. */ { struct hashEl *el, *elList = hashElListHash(cart->hash); for (el = elList; el != NULL; el = el->next) { - if (startsWith(customCompositeCartName, el->name) || startsWith(quickLiftCartName, el->name)) + // we probably shouldn't be doing this until the user actually makes a change in the collection + if (startsWith(customCompositeCartName, el->name)) copyLocalHubs(cart, el); } } static void storeInOldVars(struct cart *cart, struct hash *oldVars, char *var) /* Store all cart hash elements for var into oldVars (if it exists). */ { if (oldVars == NULL) return; struct hashEl *hel = hashLookup(cart->hash, var); // NOTE: New cgi vars not in old cart cannot be distinguished from vars not newly set by cgi. // Solution: Add 'empty' var to old vars for cgi vars not already in cart if (hel == NULL) hashAdd(oldVars, var, cloneString(CART_VAR_EMPTY));