-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 9.10
-
Component/s: File Upload , Web UI
-
Release Notes Summary:The nuxeo-dropzone element works in Edit layout.
-
Backlog priority:700
-
Browser:
-
Sprint:nxGang Sprint 10.3.1, nxGang Sprint 10.3.2, nxGang Sprint 10.3.3, nxGang Sprint 10.3.4, nxGang Sprint 10.3.5
-
Story Points:1
When nuxeo-dropzone is used in edit layout on a file schema field, the dirty property is not detected by the documentChanged observer from the nuxeo-document-edit element.
As a direct result, it is not possible to edit a blob in the edit popup. The following diff should solve the issue:
m3 fox@fox-laptop:~/workspace/nuxeo-web-ui$ git diff diff --git i/elements/nuxeo-dropzone/nuxeo-dropzone.html w/elements/nuxeo-dropzone/nuxeo-dropzone.html index 40d37e02..04f79145 100644 --- i/elements/nuxeo-dropzone/nuxeo-dropzone.html +++ w/elements/nuxeo-dropzone/nuxeo-dropzone.html @@ -242,10 +242,10 @@ limitations under the License. this._handleBlobListUploaded(); } } else { - this.document.properties[this.xpath] = { + this.set('document.properties.' + this.xpath, { 'upload-batch': data.detail.batchId, 'upload-fileId': '0' - }; + }); this._handleBlobUploaded(); } },
Moreover, still using the drozone in a edit layout but on a blobList field, the document is saved automatically despite we don't click the save button. This is because the updateDocument property is not taken into account for blobList. For the record NXP-24651 addressed a related issue but for creation layout.
- causes
-
NXP-28363 Fix document version refresh after adding attachment
- Resolved
- is related to
-
NXP-26451 Allow the usage of nuxeo-dropzone for a blob list without "auto submit"
- Resolved
-
NXP-28395 Fix file upload when using 'nuxeo-dropzone' element in edit layout
- Resolved
-
NXP-24651 Improve dropzone to support attaching files to a blob list property of a document not yet created
- Resolved