Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-6852

Generated layout incorrect for multivalued blob properties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: To Do
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2022.5.5
    • Fix Version/s: None
    • Component/s: Layouts & Widgets
    • Sprint:
      YO LETS DO THIS MAYBE, UI - 2023-7, UI - 2023-8, UI - 2023-9, UI COOLDOWN - 2023-8
    • Story Points:
      5

      Description

      When you have a multivalued blob properties (e.g. files:files), when drag&dropping an input for it in a Create/Edit/Import layout, the output is incorrect:

       

          <div role="widget">
            <label id="filesField">Files</label>
            <nuxeo-dropzone value="{{document.properties.files:files}}" multiple="true" aria-labelledby="filesField" name="files"></nuxeo-dropzone>
          </div>
      

       

      The attribute value-key="file" is missing, leading the property to be incorrectly created/updated like this:

       

          "files:files": [
            {
              "file": null
            },
            {
              "file": null
            }
          ],
      

       

      The nuxeo-dropzone should be instead configured like this to make it work:

          <div role="widget">
            <label id="filesField">Files</label>
            <nuxeo-dropzone value="{{document.properties.files:files}}" multiple="true" value-key="file" aria-labelledby="filesField" name="files"></nuxeo-dropzone>
          </div>

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 5 hours
                  1d 5h