Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[com_fields] Multilanguage: fixing display of fields when the item concerned is set to ALL #18536

Merged
merged 1 commit into from Nov 24, 2017

Conversation

infograf768
Copy link
Member

@infograf768 infograf768 commented Nov 9, 2017

Pull Request for Issue #18396 , replaces #18474

Issue: An item (article in that case) tagged to ALL languages is displaying all fields tagged to specific languages.

Summary of Changes

When an item is tagged to ALL languages, only display custom fields tagged to ALL languages as well as custom fields tagged to the Active language.

Testing Instructions

Create a multilingual site. 2 Content languages are enough. Here for en-GB and fr-FR
Structure:
===>Categories
screen shot 2017-11-02 at 09 44 48
===>Articles set as Featured
screen shot 2017-11-02 at 09 46 07
===> Home menu as Featured Articles menu item for each language.
screen shot 2017-11-02 at 09 50 10
===> Create some articles custom fields and assign languages, including ALL
screen shot 2017-11-09 at 08 35 51

Expected result

Example for articles for a multingual site with 2 Content Languages:

For an article tagged to ALL, only custom fields tagged to ALL as well as custom fields tagged to the Active language should display.
This to follow the current behavior of any item on a multilang site: items set to ALL display whatever the language, items set to a specific language only display when the language is the active one.

Actual result

Custom fields tagged to ALL as well as custom fields tagged to any Content Language are displayed

Before patch

French
screen shot 2017-11-08 at 08 52 57
English
screen shot 2017-11-08 at 08 53 16

After Patch

French
screen shot 2017-11-09 at 08 27 57
English
screen shot 2017-11-09 at 08 30 24

@laoneo
@AlexRed
@ajejebrazorf01
@ggppdk

@infograf768
Copy link
Member Author

This PR does not solve yet the filtering of User custom fields (profile) as discussed in #18474 (comment)

@AlexRed
Copy link
Contributor

AlexRed commented Nov 9, 2017

I have tested this item ✅ successfully on 28d5132

Patch ok for me.


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

@ghost
Copy link

ghost commented Nov 12, 2017

@ajejebrazorf01 can you please test?

@jreys
Copy link
Contributor

jreys commented Nov 15, 2017

I have tested this item ✅ successfully on 28d5132


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

@joomla-cms-bot joomla-cms-bot removed this from the Joomla 3.8.3 milestone Nov 15, 2017
@ghost
Copy link

ghost commented Nov 15, 2017

RTC after two successful tests.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Nov 15, 2017
@infograf768 infograf768 added this to the Joomla 3.8.3 milestone Nov 15, 2017
@infograf768
Copy link
Member Author

@laoneo
Shall I now create a PR for the profile issue with the code I proposed here?
#18474 (comment)

Free to all to propose a better solution, if it exists.

@laoneo
Copy link
Member

laoneo commented Nov 15, 2017

I can have a look on JWC.

@laoneo
Copy link
Member

laoneo commented Nov 18, 2017

Can you make a pr with the proper testing instructions, I can't reproduce it. Probably I do something wrong.

@infograf768
Copy link
Member Author

@laoneo

Can you make a pr with the proper testing instructions, I can't reproduce it. Probably I do something wrong.

Will do.

@infograf768
Copy link
Member Author

@laoneo
See #18743

@mbabker mbabker merged commit 35b95f5 into joomla:staging Nov 24, 2017
@joomla-cms-bot joomla-cms-bot added PR-staging and removed RTC This Pull Request is Ready To Commit labels Nov 24, 2017
@infograf768 infograf768 deleted the multilang_fields branch November 24, 2017 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants