? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
9 Nov 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

avatar infograf768 infograf768 - open - 9 Nov 2017
avatar infograf768 infograf768 - change - 9 Nov 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Nov 2017
Category Front End Plugins
avatar infograf768
infograf768 - comment - 9 Nov 2017

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

avatar AlexRed AlexRed - test_item - 9 Nov 2017 - Tested successfully
avatar AlexRed
AlexRed - comment - 9 Nov 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.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Nov 2017

@ajejebrazorf01 can you please test?

avatar jreys jreys - test_item - 15 Nov 2017 - Tested successfully
avatar jreys
jreys - comment - 15 Nov 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.

avatar franz-wohlkoenig franz-wohlkoenig - change - 15 Nov 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 15 Nov 2017

RTC after two successful tests.

avatar infograf768
infograf768 - comment - 15 Nov 2017

@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.

avatar laoneo
laoneo - comment - 15 Nov 2017

I can have a look on JWC.

avatar laoneo
laoneo - comment - 18 Nov 2017

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

avatar infograf768
infograf768 - comment - 20 Nov 2017

@laoneo

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

Will do.

avatar infograf768
infograf768 - comment - 20 Nov 2017
avatar mbabker mbabker - close - 24 Nov 2017
avatar mbabker mbabker - merge - 24 Nov 2017
avatar mbabker mbabker - change - 24 Nov 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-11-24 18:11:03
Closed_By mbabker
Labels Added: ?

Add a Comment

Login with GitHub to post a comment