Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Michael SaechangMichael Saechang(Deactivated)Reporter
Vitor SilvaVitor Silva(Deactivated)Branch Version/s
6.1.xBackported to Branch
CommittedGit Pull Request
Components
Affects versions
Priority
Medium
Details
Details
Assignee
Michael Saechang
Michael Saechang(Deactivated)Reporter
Vitor Silva
Vitor Silva(Deactivated)Branch Version/s
6.1.x
Backported to Branch
Committed
Git Pull Request
Components
Affects versions
Priority
Zendesk Support
Zendesk Support
Zendesk Support
Created July 24, 2012 at 3:43 AM
Updated June 24, 2023 at 3:54 PM
Resolved July 26, 2012 at 11:23 AM
When having workflow enabled, if a translation is added and the document is pending, it will automatically increase the article version. This is because only draft is being checked, if it is draft the version will remain the same. More validations should be added.
The method is JournalArticleLocalServiceImpl.updateArticleTranslation
"if (!oldArticle.isDraft())" should be replaced by "if (!oldArticle.isDraft() && !oldArticle.isPending())"
To reproduce start Liferay with Kaleo Workflow.
Upload translation-fork-definition.xml. Apply translation workflow to Web Contents.
Add admin user to workflow roles
Create a web content, submit, accept workflow task, submit task for translation, accept spanish translation task, edit the web content, click "add a translation", type something and save the translation. While still in the Web Content editor you should see the version increased to 1.1 (and the document was still in pending state)