Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-8104

doc points to a different instance after calling doc.save()

    XMLWordPrintable

Details

    • Unit, Integration
    • Medium
    • N/A
    • N/A

    Description

      Use this script to reproduce:

      {{groovy}}
      doc.setTitle("new title")
      doc.save()
      println doc.title
      {{/groovy}}
      

      The previous title is printed instead of the new title because the doc variable points to a different document instance after calling save().

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: