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

Fix nuxeo-dropzone in edit layout

    XMLWordPrintable

    Details

    • Release Notes Summary:
      The nuxeo-dropzone element works in Edit layout.
    • Tags:
    • 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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h