diff --git a/routers/repo/cloudbrain.go b/routers/repo/cloudbrain.go index a4f1165e3..4ba834e7f 100755 --- a/routers/repo/cloudbrain.go +++ b/routers/repo/cloudbrain.go @@ -188,7 +188,7 @@ func cloudBrainNewDataPrepare(ctx *context.Context) error { ctx.Data["cloudbraintype"] = models.TypeCloudBrainOne - ctx.Data["benchmarkType"] = ctx.Query("benchmarkType") + ctx.Data["benchmarkMode"] = ctx.Query("benchmarkMode") return nil } @@ -1743,7 +1743,6 @@ func CloudBrainBenchmarkNew(ctx *context.Context) { ctx.Data["description"] = "" ctx.Data["benchmarkTypeID"] = -1 ctx.Data["benchmark_child_types_id_hidden"] = -1 - ctx.Data["type"] = ctx.Query("type") err := cloudBrainNewDataPrepare(ctx) if err != nil { ctx.ServerError("get new cloudbrain info failed", err)