fed02927c85bea25c3dc5117590aa8d46e39da72
galt
  Thu Jan 20 20:56:59 2011 -0800
The call here to customTracksSaveCart seems superfluous and causes errors in updating the html doc
diff --git src/hg/hgCustom/hgCustom.c src/hg/hgCustom/hgCustom.c
index b6f6bd5..e39fc7e 100644
--- src/hg/hgCustom/hgCustom.c
+++ src/hg/hgCustom/hgCustom.c
@@ -1189,46 +1189,43 @@
 	return;
 	}
     if (cartVarExists(cart, hgCtDoDelete))
         {
 	doDeleteCustom();
         ctUpdated = TRUE;
         }
     if (cartVarExists(cart, hgCtDoRefresh))
 	{
 	doRefreshCustom(&warn);
 	addWarning(dsWarn, warn);
         ctUpdated = TRUE;
 	}
     if (ctUpdated || ctConfigUpdate(ctFileName))
 	{
-	customTracksSaveCart(database, cart, ctList);
-
 	/* refresh ctList again to pickup remote resource error state */
 	struct errCatch *catch = errCatchNew();
 	if (errCatchStart(catch))
 	    ctList = customTracksParseCartDetailed(database, cart, &browserLines, &ctFileName,
 					       &replacedCts, NULL, &err);
 	errCatchEnd(catch);
 	if (catch->gotError)
 	    {
 	    addWarning(dsWarn, err);
 	    addWarning(dsWarn, catch->message->string);
 	    ctParseError = TRUE;
 	    }
 	errCatchFree(&catch);
-
 	}
     warn = dyStringCannibalize(&dsWarn);
     if (measureTiming)
 	{
 	long lastTime = clock1000();
 	loadTime = lastTime - thisTime;
 	}
     if (!initialDb || ctList || cartVarExists(cart, hgCtDoDelete))
         doManageCustom(warn);
     else if (ctParseError)
 	doAddCustom(warn);
     else
         doAddCustom(NULL);
     }
 cartRemovePrefix(cart, hgCt);