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

Fix retention action filters expression

    XMLWordPrintable

    Details

      Description

      The expressions of some retention filters are bad. Typically:

       expression="!this.document.retainUntil
      

      TheĀ document object is already in the filter context and we should not use this.

      This results in some javascript errors:

      nuxeo-filter.js:212 TypeError: Cannot read property 'retainUntil' of undefined in <nuxeo-filter> expression "!this.document.retainUntil
                          && !this.hasFacet(document, 'Folderish')
                          && this.hasPermission(document, 'MakeRecord')
                          && this.hasPermission(document, 'SetRetention')"
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: