Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.1 CE GA2, 6.2.10 EE GA1, 6.2.X EE, 7.0.0 M4
-
6.2.x
-
Committed
-
4
Description
== 6.2.10/6.2.x (original description)
I created a Dynamic Data List and then added a form to be able to receive input from users. However, whenever a user that has spanish as their primary language clics on the send button the list doesn't get updated and an error is shown: "Su petición no se ha podido realizar correctamente. Por favor, rellene todos los campos obligatorios." Which translates something like: "Your request could not been performed correctly. Please fill in all the required fields".
Steps to reproduce:
1. Create a Dynamic Data List
2. Add it to a form (on spanish)
3. Put some of the field as required
4. Try to fill the form and submit it
5. If the language is changed to english the form works.
Steps used to Reproduce by QA:
- Log in to Test Test user
- Deploy Dynamic Data List Form
- Add Dynamic Data List Form portlet to the Welcome page
- Add List
- Create Data Definition with Required Text field and non-Required Selector field
- Save List
- Go to My Account > Display Settings
- Change Language to "català (Espanya)"
- Go to the Welcome page
- Submit new list record
- Input text into required Text field
- Save (Envia)
6. Try to submit another pair of values. It fails with error: "Please fill out all required fields"
Expected: it should submit without any problems
== master/7.0.x
0- Build & deploy DDL Form portlet
1- Go to Admin/Content/Dynamic Data Lists/Manage Data Definitions/Add
- Add a text field and make it required, then add an Integer field.
- Save.
2- Add a new DDL using the definition you have just created
3- Place DDL Display and DDL Form portlets on the Welcome page
4- Configure both portlets to use the DDL we have just created
Observations 1
When you click on the "Add..." button in the DDL Display porlet's navbar, the opening edit form will contain a Translation Manager, so you can select the language in which you would like to submit your form. Added in
LPS-30197
Now, use the DDL Form portlet: there is no Translation Manager
6- Place the Language portlet on the Welcome page
7- Switch to "French" locale
Observations 2
When you click on the "Add..." button in the DDL Display porlet's navbar, the Translation Manager is still present, so you can submit the form in a different locale, despite your current display locale is fr_FR
There is no Translation Manager displayed in the DDM Form portlet.
- Here, an end-user may assume that the form will be submitted in French locale as this is his current display locale.
- Fill out the form
- Open Firebug and select the Net panel
- Save the form and check payload of corresponding POST request on the Net panel:
_1_WAR_ddlformportlet_INS... 1420197686247 _1_WAR_ddlformportlet_INS... /web/guest/home?p_p_id=82&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_pos=2&p_p_col_count=4 _1_WAR_ddlformportlet_INS... 20537 _1_WAR_ddlformportlet_INS... true _1_WAR_ddlformportlet_INS... 1 _1_WAR_ddlformportlet_INS... asdsdsa _1_WAR_ddlformportlet_INS... 1231232131 _1_WAR_ddlformportlet_INS... {"availableLanguageIds":["en_US"],"defaultLanguageId":"en_US","fieldValues":[{"instanceId":"cjib","name":"Text","value":{"en_US":"asdsdsa"}},{"instanceId":"dqbp","name":"Integer","value":{"en_US":"1231232131"}}]} Source -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_formDate" 1420197686247 -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_redirect" /web/guest/home?p_p_id=82&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_pos=2&p_p_col_count=4 -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_recordSetId" 20537 -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_multipleSubmissions" true -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_workflowAction" 1 -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_Text_INSTANCE_cjib" asdsdsa -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_Integer_INSTANCE_dqbp" 1231232131 -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_ddmFormValues" {"availableLanguageIds":["en_US"],"defaultLanguageId":"en_US","fieldValues":[{"instanceId":"cjib","name":"Text","value":{"en_US":"asdsdsa"}},{"instanceId":"dqbp","name":"Integer","value":{"en_US":"1231232131"}}]} -----------------------------67797557311393430511080606121--
Attachments
Issue Links
- is duplicated by
-
LPS-52407 DDL Form Portlet: it is not possible to localize DDM fields, form is always submitted with "en_US" locale, even if the user is on a different display language
- Closed
- Testing discovered
-
LPS-52407 DDL Form Portlet: it is not possible to localize DDM fields, form is always submitted with "en_US" locale, even if the user is on a different display language
- Closed