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

Wrong logic to fetch temporary workflows in workflowlist view

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.7.0alpha1
    • 2011.10, 3.10.0, 3.10.1rc1, 3.9.4, 4.0.0, 4.0.1rc1, 4.5.0, 4.6.0
    • Legacy > Workflows
    • None

    Description

      $temp_list =array();
      foreach( $tempworkflow_list as $tmpWorkflow )
      {
          foreach ( $templist_in_group as $tmpInGroup )
          {
              $id =  $tmpWorkflow->attribute("id");
              $workflow_id =  $tmpInGroup->attribute("workflow_id");
              if ( $tmpWorkflow->attribute( 'id' ) === $tmpWorkflow->attribute( 'workflow_id' ) )
              {
                  $temp_list[] = $tmpWorkflow;
              }
          }
      }
      

      There is no such attribute $tmpWorkflow->attribute( 'workflow_id' ). That line should be replaced by:

      if ( $id === $workflow_id )
      

      Attachments

        Activity

          People

            jv@ez.no jv@ez.no
            cyberwolf cyberwolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: