mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19853: Preventing workflows from requiring a target content item
Work Item: 19853 --HG-- branch : 1.x
This commit is contained in:
@@ -63,7 +63,7 @@ namespace Orchard.Workflows.Services {
|
||||
// it's important to return activities at this point as a workflow could be awaiting
|
||||
// on several ones. When an activity is restarted, all the other ones of the same workflow are cancelled.
|
||||
awaitingActivities.AddRange(_awaitingActivityRepository.Table.Where(
|
||||
x => x.ActivityRecord.Name == name && x.ActivityRecord.Start == false && x.WorkflowRecord.ContentItemRecord == target.ContentItem.Record
|
||||
x => x.ActivityRecord.Name == name && x.ActivityRecord.Start == false && (target.ContentItem == null || (x.WorkflowRecord.ContentItemRecord == target.ContentItem.Record))
|
||||
).ToList()
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user