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