Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
6.2-milestone-1
-
None
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
- blocks
-
XWIKI-9567 Cannot restore document translations from recycle bin
- Closed