Details
-
Bug
-
Resolution: Fixed
-
Critical
-
5.2, 5.3
Description
If you have a custom workflow event that returns eZWorkflowType::STATUS_REDIRECT, the status won't be correctly set and the items will disappear from admin interface because of that.
Steps to Reproduce
- Create a custom workflow event according to the following code
class myTest extends eZWorkflowEventType { const WORKFLOW_TYPE_STRING = 'mytest'; function __construct(){ parent::__construct(self::WORKFLOW_TYPE_STRING, 'My Test'); } function execute( $process, $event ){ $process->RedirectUrl = '/'; return eZWorkflowType::STATUS_REDIRECT_REPEAT; } } eZWorkflowEventType::registerEventType( myTest::WORKFLOW_TYPE_STRING, 'myTest' );
- Create a new workflow and set it to before\publish trigger
- Create a new article
- The item won't be displayed at pending items
Note: This was working in all versions before eZP 5.2