Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-18143

User register failed if approval workflow

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • 4.4.0
    • Legacy > Workflows
    • 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

      Attachments

        Activity

          People

            chen chen
            ridercrazy ridercrazy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: