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

workflow/view - event_ezmultiplexer.tpl - selected workflow view shows in some cases wrong values

    XMLWordPrintable

Details

    Description

      workflow/view

      1. you have workflows defined > 10 e.g. 14

      1 - workflow1
      2 - worfklow2
      4 - workflow5
      ...
      14 - worklow14

      2. you create a multplexer workflow and select "workflow to run" - workflow14
      3. after storing you will see
      workflow1, worklfow2, workflow14
      but only worklfow14 should be shown

      Their is a small mistake in
      design/standard/templates/workflow/eventtype/view/event_ezmultiplexer.tpl

      change 'contains' to 'eq'

      <div class="element">
      {let selectedWorkflow=$event.selected_workflow}
      {"Workflow to run"|i18n("design/standard/workflow/eventtype/view")}:
      
      {section var=workflow loop=$event.workflow_type.workflow_list}
      {*if $selectedWorkflow|contains($workflow.value)
      $event.selected_workflow is an int field in db so it is a single select
      contains produce an error if you have worklows > 10    e.g. 14
      if 14 is selected worklwow 1 and 4 would shown, too
      *}
      {if $selectedWorkflow|eq($workflow.value)}
      {$workflow.Name|wash}
      {/if}
      {/section}
      
      {/let}
      </div>
      

      Attachments

        Activity

          People

            jv@ez.no jv@ez.no
            4d91e976-d41f-487b-ae85-f7216bd06dac@accounts.ibexa.co Felix Woldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: