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

Fix Document.RemoveItemFromListProperty operation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 8.3-SNAPSHOT
    • Fix Version/s: 8.3
    • Component/s: Automation
    • Tags:
    • Sprint:
      nxGang Sprint 8.3.6

      Description

      Using the following chain:

      - Seam.GetCurrentDocument
      - Document.CopySchema:
          schema: dublincore
          sourceId: "@{Document.domain.id}"
          sourcePath: "@{Document.workspace.path}"
      - Document.Save
      - Document.AddFacet:
          facet: IADDSTUFF
      - Document.RemoveFacet:
          facet: IADDSTUFF
      - WebUI.AddInfoMessage:
          message: "@{Fn.documentExists(Session, Document.domain.id) ? \"YES\" : \"NO\"}"
      - Document.AddItemToListProperty:
          complexJsonProperties: "[{\"name\": \"Norris\", \"firstName\": \"Chuck\"}]"
          xpath: "book:author"
          save: "true"
      - Document.RemoveItemFromListProperty:
          xpath: "book:author"
          index: "0"
          save: "true"
      

      The Document.RemoveItemFromListProperty does not remove the entry that was added by the previous operation, although it succeeds.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: