core icon indicating copy to clipboard operation
core copied to clipboard

Error in logs when param defaults to all in Translation Workflow

Open shaydotcms opened this issue 10 years ago • 3 comments

Related to #9037 When you add the Translate Content sub-action, it is needed to manually type in “all” as a language param to get the translation of all languages, otherwise the system will throw an error: https://gist.github.com/shaydotcms/3d95ee2a63d2ee8d42ae8e4cc522e5a4 5f00c4d9-3115-4729-b0dc-da8e7fa986f2

Steps to reproduce

  1. Login to Dotcms
  2. Generate and upload the jar "plugin-dotcms-actionlet-google-translate-0.1.jar"
8cc03584-b89c-4a6c-a19a-f12c0c1dc55a
  1. Now navigate to Content Types> Workflow Schemes
  2. Click on Default Scheme
  3. Inside Initial State, create a new Workflow Action “Translation_test" and hit Save
  4. Now Add the Sub-action “Translate Content" such as below and hit Save
986dc94a-e319-425b-8b79-2ecdfdfb4556
  1. Now add Generic Content and hit “Translation_test”
0a465b18-e72d-46e4-a1ee-c51cd16cc5b1
  1. The expected behavior is that you shouldn’t have to type in “all” as a language param to get the translation of all languages
6034755d-f483-4b2d-8b06-2b6c85fce4b4

Tested locally in: master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox

shaydotcms avatar Jun 21 '16 20:06 shaydotcms

Removed the "(defaults to all)" from the "Translate to" param, since it brings confusion.

dsilvam avatar Jun 21 '16 21:06 dsilvam

Fix: https://github.com/dotCMS/plugin-dotcms-actionlet-google-translate/commit/6c74d281cd8e2eb5ee0abaaa3902a7f884d30ec8

dsilvam avatar Jun 21 '16 22:06 dsilvam

Passed QA. Fix is working as expected Tested locally in: master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox

shaydotcms avatar Jun 24 '16 17:06 shaydotcms