mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
@@ -1,6 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Specialized;
|
using System.Collections.Specialized;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Security.Cryptography.X509Certificates;
|
||||||
|
using System.Web;
|
||||||
using System.Web.Mvc;
|
using System.Web.Mvc;
|
||||||
using System.Web.Routing;
|
using System.Web.Routing;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
@@ -381,7 +383,7 @@ namespace Orchard.Workflows.Controllers {
|
|||||||
|
|
||||||
var model = new UpdatedActivityModel {
|
var model = new UpdatedActivityModel {
|
||||||
ClientId = clientId,
|
ClientId = clientId,
|
||||||
Data = new NameValueCollection(formValues)
|
Data = HttpUtility.JavaScriptStringEncode(FormParametersHelper.ToJsonString(formValues))
|
||||||
};
|
};
|
||||||
|
|
||||||
TempData["UpdatedViewModel"] = model;
|
TempData["UpdatedViewModel"] = model;
|
||||||
|
@@ -15,7 +15,7 @@ namespace Orchard.Workflows.ViewModels {
|
|||||||
|
|
||||||
public class UpdatedActivityModel {
|
public class UpdatedActivityModel {
|
||||||
public string ClientId { get; set; }
|
public string ClientId { get; set; }
|
||||||
public NameValueCollection Data { get; set; }
|
public string Data { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -52,7 +52,7 @@
|
|||||||
var model = TempData["UpdatedViewModel"] as UpdatedActivityModel;
|
var model = TempData["UpdatedViewModel"] as UpdatedActivityModel;
|
||||||
if (model != null) {
|
if (model != null) {
|
||||||
@: updatedActivityClientId = '@(model.ClientId)';
|
@: updatedActivityClientId = '@(model.ClientId)';
|
||||||
@: updatedActivityState = '@Html.Raw(HttpUtility.JavaScriptStringEncode(FormParametersHelper.ToJsonString(model.Data)))';
|
@: updatedActivityState = '@Html.Raw(model.Data)';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!Model.IsLocal) {
|
else if (!Model.IsLocal) {
|
||||||
|
Reference in New Issue
Block a user