mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
- Boolean field what incorrectly updating values for drafts - Decision script is now using #{ } token syntax by default - ContentItem is used by custom forms Work Items: 20241, 20191
This commit is contained in:
@@ -155,7 +155,7 @@ namespace Orchard.CustomForms.Controllers {
|
|||||||
() => new Dictionary<string, object> { { "Content", contentItem } });
|
() => new Dictionary<string, object> { { "Content", contentItem } });
|
||||||
|
|
||||||
// trigger any workflow
|
// trigger any workflow
|
||||||
_workflowManager.TriggerEvent(FormSubmittedActivity.EventName, customForm.ContentItem,
|
_workflowManager.TriggerEvent(FormSubmittedActivity.EventName, contentItem,
|
||||||
() => new Dictionary<string, object> { { "Content", contentItem } });
|
() => new Dictionary<string, object> { { "Content", contentItem } });
|
||||||
|
|
||||||
if (customForm.Redirect) {
|
if (customForm.Redirect) {
|
||||||
|
@@ -52,7 +52,8 @@ namespace Orchard.Fields.Drivers {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Editor(part, field, shapeHelper);
|
return ContentShape("Fields_Boolean_Edit", GetDifferentiator(field, part),
|
||||||
|
() => shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: field, Prefix: GetPrefix(field, part)));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Importing(ContentPart part, BooleanField field, ImportContentContext context) {
|
protected override void Importing(ContentPart part, BooleanField field, ImportContentContext context) {
|
||||||
|
@@ -46,6 +46,9 @@ namespace Orchard.Scripting.CSharp.Activities {
|
|||||||
|
|
||||||
public override IEnumerable<LocalizedString> Execute(WorkflowContext workflowContext, ActivityContext activityContext) {
|
public override IEnumerable<LocalizedString> Execute(WorkflowContext workflowContext, ActivityContext activityContext) {
|
||||||
var script = activityContext.GetState<string>("Script");
|
var script = activityContext.GetState<string>("Script");
|
||||||
|
|
||||||
|
script = "// #{ }" + System.Environment.NewLine;
|
||||||
|
|
||||||
object outcome = null;
|
object outcome = null;
|
||||||
|
|
||||||
_csharpService.SetParameter("Services", _orchardServices);
|
_csharpService.SetParameter("Services", _orchardServices);
|
||||||
|
Reference in New Issue
Block a user