Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
5.2
Description
If you create a wait until date workflow, the cache won't be cleared after the publishing, giving the idea the workflow failed.
Steps to Reproduce
Set the cronjob
- Create a new workflow named TestDateWrk
- Add an Wait until date Event for class Article and Publish Date attribute.
- Set TestDateWrk workflow in Content\Publish\Before trigger.
Create the test content
- Create a new article and publish it with an empty Publish Date attribute.
- Edit the article
- At the text current time + 5 min to the body
- Set the Publish Date attribute to be current time + 5 min
- Publish it
Execute the cronjob
- Execute the cronjob just after publishing the object:
php runcronjobs.php frequent
- Confirm in the console you have pending items
0 out of 1 processes was finished
Completing cronjobs/workflow.php at: 28/03/2014 11:21 am
Elapsed time: 00:00:00 - When the time is right for the first draft ( current time + 5 min ), execute the cronjob again:
- Confirm in the console that the cronjob published the draft
1 out of 1 processes was finished
Completing cronjobs/workflow.php at: 28/03/2014 11:21 am
Elapsed time: 00:00:00 - In the frontend, check the article body text. Because of the bug, it will look like it wasn't publish since the body text won't have current time + 5 min.
- Clear the caches
- In the frontend, check the article body text again. Now it will display current time + 5 min.