When a publish date is set, the workflow does not set a scheduled publish. Instead, it publishes the changes right away. Unpublish date sent somehow is still saved.
Steps to reproduce the behavior:
Go to a content
Set a publish and unpublish date
Go through the workflow
Proceed to approving and publishing
Expected behavior
Workflow is completed with the publish date saved.
Plumber version
v1.1.8
At a glance, it seems like in WorkflowProcess.cs, the Instance.SetScheduledDate(); set in ActionWorkflow should be set before CompleteWorkflow(); is called. CompleteWorkflow uses the Instance to determine whether it has a scheduled date or not, but since it isn't set before, it will always call HandlePublishNow().
I don't know whether the correct fix is to put it before the CompleteWorkflow() call or not, or if there's some other issue with the instances.
When a publish date is set, the workflow does not set a scheduled publish. Instead, it publishes the changes right away. Unpublish date sent somehow is still saved.
Steps to reproduce the behavior:
Expected behavior Workflow is completed with the publish date saved.
Plumber version v1.1.8
At a glance, it seems like in
WorkflowProcess.cs
, theInstance.SetScheduledDate();
set inActionWorkflow
should be set beforeCompleteWorkflow();
is called.CompleteWorkflow
uses theInstance
to determine whether it has a scheduled date or not, but since it isn't set before, it will always callHandlePublishNow()
.I don't know whether the correct fix is to put it before the
CompleteWorkflow()
call or not, or if there's some other issue with the instances.Thanks,