core icon indicating copy to clipboard operation
core copied to clipboard

The "submit" of the "form" saves the data only in "en" language

Open santo-neticon opened this issue 12 years ago • 10 comments

My dotCMS is configured as follows:

LanguageID 1 = en LanguageID 2 = it Defaul Language = it

The current session has "contentLanguageId = 2" and the data is saved in the "en" content.

santo-neticon avatar Sep 12 '14 09:09 santo-neticon

So the issue here is the form was created in English. So when you switch it is still english content and that is what is happening to you

jtesser avatar Sep 29 '14 12:09 jtesser

I created the form as described here: "http://dotcms.com/docs/latest/FormCreation" and should be valid for all languages.

I put the form in a page and, regardless of the language, the "form" is always shown on the page. When I switch in the session "contentLanguageId=1" or "contentLanguageId=2" data are always saved only in "en" content.

You can make a new check, please?

santo-neticon avatar Sep 29 '14 16:09 santo-neticon

the form is language specific though. That is currently how it works. Not the structure but the form on the page

jtesser avatar Sep 29 '14 16:09 jtesser

Could you tell me the point where I make the mistake, please? I would like to see the data in Italian content. http://youtu.be/vcAhSKi2r4k

santo-neticon avatar Sep 29 '14 21:09 santo-neticon

I believe you are adding a Form whose language is english to the page.

jtesser avatar Sep 29 '14 21:09 jtesser

But the proper place for support would be with the support desk if you have a contract or maybe the mailing list.

jtesser avatar Sep 29 '14 21:09 jtesser

I can not find any place where you can set the language of the "form", so I assume that the "form" has no language and it is unique for everyone. In the video I show that the form is added to Italian page.

Thank you anyway.

santo-neticon avatar Sep 30 '14 08:09 santo-neticon

Yea handling the default for the modal form selector to the language your edit mode is set to. You can deal with this by creating a form and/or manually calling the macro but we will deal as you are suggesting in the future.

jtesser avatar Sep 30 '14 11:09 jtesser

QA I believe this is working in master-3.1

jtesser avatar Jan 08 '15 12:01 jtesser

This functionality is working Tested on nightly build 3.1 nightly build (2015-01-07 20:52) H2 // Chrome

shaydotcms avatar Jan 08 '15 17:01 shaydotcms