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