Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
4.4.0
-
None
-
PHP Version: 5.3.3
Database and version: MySQL 5.1.49
Description
In kernel/user/register, there's a test that breaks the process:
Line 206
if ( $operationResult['status'] !== eZModuleOperationInfo::STATUS_CONTINUE ) { eZDebug::writeError( 'User object(' . $object->attribute( 'id' ) . ') could not be published.', 'user/register' ); $module->redirectTo( '/user/register/3' ); return; }
There's no test on eZModuleOperationInfo::STATUS_HALTED. As a result, new object is marked as deleted in backend and induce error with runcronjob.
I've just made minor modification to make it work but don't know if it's the way:
if ( !($operationResult['status'] == eZModuleOperationInfo::STATUS_CONTINUE || $operationResult['status'] == eZModuleOperationInfo::STATUS_HALTED) )
Steps to reproduce
Register a workflow to validate new user publication
Try to register a new user with anonymous