Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.2-milestone-1
-
Fix Version/s: 6.2-milestone-2
-
Component/s: Old Core
-
Labels:None
-
Difficulty:Trivial
-
Documentation:N/A
-
Documentation in Release Notes:
-
Similar issues:
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
-