core
core copied to clipboard
Adding a comma (,) in Translate Field Types throws "null" error
Related to #9037 When testing Translation Workflow Action, it looks like when you add a comma (,) in Translate Field Types it throws a "null" error in the logs.
Steps to reproduce:
- Login to Dotcms
- Generate and upload the jar "plugin-dotcms-actionlet-google-translate-0.1.jar"
- Now navigate to Content Types> Workflow Schemes
- Click on Default Scheme
- Inside Initial State, create a new Workflow Action “Translation_test" and hit Save
- Now Add the Sub-action “Translate Content" such as below and hit Save
- Click Translate Content sub-action and add a comma (,) in Translate Field Types
- Click Save
- Now add Generic Content in English and hit “Translation_test”
- You will see this error:
https://gist.github.com/shaydotcms/664ead7915165c37e7580e55d7924a3d

Tested locally in: master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox
Fixed here: https://github.com/dotCMS/core/issues/9262
Passed QA. Translation Workflow is not allowing comma (,) in Translate Field Types. Tested locally in: master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox