?
avatar JUG-FN
JUG-FN
23 Mar 2017

Steps to reproduce the issue

Joomla 3.7 Custome Fields for User.
I have a test page 3.7 Beta 3 with three languages created. New groups and fields for EACH language created for user registration. It does not seem to work. All groups (and fields) of languages are ALWAYS displayed!

Groups and fields with the corresponding languages are always displayed in ALL languages. So EN also in DE...

You can see it here:
http://joomla03.jug-friedrichshafen.de/de/component/users/?view=registration&Itemid=103

Actual result

System information (as much as possible)

Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
Datenbankversion 5.5.54-0+deb7u2-log
Datenbankzeichensatz utf8_general_ci
Datenbankverbindungszeichensatz utf8mb4_general_ci
PHP-Version 7.0.16
Webserver Apache
PHP-Interface für den Webserver cgi-fcgi
Joomla!-Version Joomla! 3.7.0-beta3 Beta [ Amani ] 21-February-2017 15:03 GMT
Joomla!-Plattform-Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Browsererkennung Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0

Additional comments

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar JUG-FN JUG-FN - open - 23 Mar 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Mar 2017
avatar brianteeman
brianteeman - comment - 23 Mar 2017

I can confirm this error

avatar Bakual Bakual - edited - 23 Mar 2017
avatar Bakual
Bakual - comment - 23 Mar 2017

From memory, I think the language filter relates to the item language, not the site language. But in the registration form we don't really have an item. So that may be where this issue comes from.

avatar infograf768
infograf768 - comment - 23 Mar 2017

It does work fine for articles (for custom fields at least) on a multilanguage site.

avatar Bakual
Bakual - comment - 23 Mar 2017

Yep, because articles have a language property, the check works fine there. But since the registration form and likely also the contact form doesn't have a language property, it will show all fields.
The same happens by the way when you create a new article where the language isn't set yet, there all fields will be shown as well.

For the registration and contact form, the expected behavior is clear to only show the fields matching the site language. But what would you expect for new items (eg new article)?
Technically it's the same code that is run there (onContentPrepareForm event).

avatar brianteeman
brianteeman - comment - 23 Mar 2017

Wouldn't the available fields change when you change language in the same way the available fields change when you change category?

avatar Bakual
Bakual - comment - 23 Mar 2017

Apparently not. Only after saving the article with a language set, the fields are filtered. Probably an issue by itself.

avatar laoneo
laoneo - comment - 30 Mar 2017

A solution for the initial issue description can be to fall back to the language of the site, when the item doesn't have a language property.
The issue discovered by @Bakual and @brianteeman should probably be solved the same way as with categories, with a page reload when the language changes and some intelligence when a new article is created.

avatar infograf768
infograf768 - comment - 30 Mar 2017

A solution for the initial issue description can be to fall back to the language of the site, when the item doesn't have a language property.

Not sure about this one. I explain:
On a monolanguage site where multiple languages are installed, a user may look at the site in a specific language (depending on her/his choice) for the UI but the contents are the same.

avatar Bakual
Bakual - comment - 30 Mar 2017

@infograf768 On a site with only one language, the user doesn't have fields assigned to specific languages (since there are no other content languages), so it's no issue at all.

avatar laoneo
laoneo - comment - 30 Mar 2017

As long as the item (article) has a language property, then nothing changes, but as soon as the item has no language property, then the language from the site is used. That was my intention.

avatar infograf768
infograf768 - comment - 30 Mar 2017

@Bakual

On a site with only one language, the user doesn't have fields assigned to specific languages (since there are no other content languages), so it's no issue at all.

Not true, now, when someone install a language, (and although I was against it), a content language is always created. Even if it is not published, it will display in the Language field.
Therefore someone may assign a language to a field or fieldgroup on a monolanguage site.
Let's not forget that multiple languages can be installed on a monolanguage site and they are not used the same way
as on a multilingual site.

avatar Bakual
Bakual - comment - 30 Mar 2017

Therefore someone may assign a language to a field or fieldgroup on a monolanguage site.

Yes, of coursse the user can misconfigure a field, but honestly then I would also expect the field to be filtered by the language even on a site that is not set up as multilingual.

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Apr 2017
Category com_fields com_fields Language & Strings
avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Apr 2017
Title
com_fields: Fields and gruops in languages not working
com_fields: Fields and groups in languages not working
Status New Confirmed
avatar joomla-cms-bot joomla-cms-bot - change - 2 Apr 2017
Title
[com_fields] Fields and groups in languages not working
com_fields: Fields and groups in languages not working
avatar joomla-cms-bot joomla-cms-bot - edited - 2 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Apr 2017
Title
com_fields: Fields and groups in languages not working
[com_fields] Fields and groups in languages not working
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Apr 2017
Title
com_fields: Fields and groups in languages not working
[com_fields] Fields and groups in languages not working
avatar laoneo
laoneo - comment - 11 Apr 2017

Please test pr #15223 which should solve the issue.

avatar JUG-FN
JUG-FN - comment - 14 Apr 2017

I have tested in RC2 and now it works fine. thank you.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14865.

avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Apr 2017
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2017-04-14 13:26:07
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 14 Apr 2017
Closed_Date 2017-04-14 13:26:07 2017-04-14 13:26:08
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 14 Apr 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Apr 2017

closed as Issue solved.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14865.

avatar joomla-cms-bot
joomla-cms-bot - comment - 14 Apr 2017
avatar ynzejan
ynzejan - comment - 26 Sep 2017

What is meant by 'the issue is closed'?
I have updated to Joomla 3.8.0 and I am experiencing the problem as raised.
I have a multilingual (main language NL and second language GB) site which was setup without data.
I have defined two user groups (one for each language) in the Users menu and defined a number of fields for each group (each field assigned to the appropriate language).
All fields are required.
In the backend when I define a new user I am forced to enter all fields for both field groups (although I have defined one main language).
In the frontend when showing a user profile both field groups are shown.

So, as far as I am concerned the issue is far from resolved.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14865.

avatar ynzejan
ynzejan - comment - 26 Sep 2017

I have to correct myself. The initial setup for my website was with sample data and multilanguage support was added later.
So, does that mean that I cannot resolve the issue in the current setup and have to setup a fresh install without sample data and including multilanguage support upfront? And have the hassle of in one way or the other migrate everything I have setup so far from the current to that new website setup (which would be quite a shame)?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14865.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Sep 2017

@ynzejan can you please open an new Issue as comment on closed issues didn't get much Attention, thanks.

Add a Comment

Login with GitHub to post a comment