Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25258

Fix widget 'routing_task_target_document'

    XMLWordPrintable

    Details

    • Backlog priority:
      600
    • Sprint:
      nxcore 10.3.7, nxcore 10.3.8
    • Story Points:
      2

      Description

      Widget routing_task_target_document used in the content view under HOME > Workflows does not properly render the linked property (see screenshot-1.png).

      How to reproduce:

      1. install Nuxeo
      2. install JSF UI
      3. start a workflow
      4. head over to HOME > Workflows

      Expected result: the document ids should be resolved
      Actual result: an error message Document not found or not visible. is shown

      As the linked property is a multi-valued property, it should use a widget type multipleDocumentsSuggestion instead of singleDocumentSuggestion. This seems to be related to NXP-21025 and more specifically to this commit.

      Here is a workaround, a Studio XML extension:

        <require>org.nuxeo.ecm.platform.routing.dashboard.layouts</require>
      
        <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
          point="widgets">
      
          <widget name="routing_task_target_document" type="multipleDocumentsSuggestion">
            <labels>
              <label mode="any">label.document</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>data.nt.targetDocumentsIds</field>
            </fields>
          </widget>
      
        </extension>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h