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

Expose Document.isTranslation() to the web API

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 6.2-milestone-2
    • 6.2-milestone-1
    • Old Core
    • None
    • Trivial
    • N/A

    Description

      From the web API it is not that easy to find out if the Document instance you are holding is the main document or a translation.

      Such situations can occur when using:

      - $doc.getTranslatedDocument()
      - $xwiki.getDeletedDocument(...).getDocument()
      - etc...
      

      The new method should look something like this:

      $doc.isTranslation()
      

      Attachments

        Issue Links

          Activity

            People

              enygma Eduard Moraru
              enygma Eduard Moraru
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: