? Success

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
5 Dec 2016

Summary of Changes

At the moment on a multilingual page if you have a menu item with language == All, the associations in mod_language links to the default menu item. With this patch, just the language changes and the user stays on the same page.

Testing Instructions

=> Create a multilingual page with at least two installed languages and association option active
=> Create a new menu item (e.g. login) and choose language = All
=> Active the language chooser module
=> Go to the new menu item

Before patch: the link for the second language goes to the "home" menu item
After patch: the link is the same as the current page, just the language changed

avatar bembelimen bembelimen - open - 5 Dec 2016
avatar bembelimen bembelimen - change - 5 Dec 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Dec 2016
Category Modules Front End
avatar infograf768
infograf768 - comment - 5 Dec 2016

This may not work in some special conditions due to a bug in ROOT/libraries/legacy/table/menu.php where the alias of the menu item (in the root of that menu) set to ALL already exists in another language for a menu item at the root level of the menu displayed in that language.

See https://github.com/joomla/joomla-cms/blob/staging/libraries/legacy/table/menu.php#L180-L188

On a multingual site, one can use the same alias for menu items in the root of their specific language as long as these menu items are tagged to the specific different languages, NOT including All.
i.e one can have mysite.com/en/isaacnewton and mysite,com/fr/isaacnewton.

BUT, and here is the bug:
let's say you already have in fr-FR a menu item with the alias isaacnewton tagged to fr-FR at the root of the menu.
Create in an en-GB menu a menu item tagged to ALL with the same alias isaacnewton at the root of the menu.
You can't save the menu item. All is good.

Now change the language to en-GB. It saves OK and that is fine.

Now, edit again the menu item and change its language to ALL: it is possible although it should NOT be!

Therefore with this patch when the menu item tagged to ALL is displayed and you click on the module to switch to French, instead of displaying the menu item tagged to ALL in the French interface, you get the original French menu item.

Conclusion: this patch is great but we should first solve the bug.

avatar infograf768
infograf768 - comment - 5 Dec 2016

@andrepereiradasilva
I think this bug is due to #10756

can you please check?

avatar bembelimen
bembelimen - comment - 6 Dec 2016

Fully agree

avatar infograf768
infograf768 - comment - 7 Dec 2016

@bembelimen
please test #13112

avatar infograf768 infograf768 - change - 10 Dec 2016
Category Modules Front End Front End Modules Multilanguage
avatar infograf768
infograf768 - comment - 11 Dec 2016

I have tested this item successfully on 72d1cf4

as the alias issue is now solved and merged, this is now ok


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

avatar infograf768 infograf768 - test_item - 11 Dec 2016 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 11 Dec 2016

I have tested this item successfully on 72d1cf4


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

avatar coolcat-creations coolcat-creations - test_item - 11 Dec 2016 - Tested successfully
avatar infograf768 infograf768 - change - 12 Dec 2016
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 12 Dec 2016

RTC

thanks.


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

avatar jeckodevelopment jeckodevelopment - change - 13 Dec 2016
Milestone Added:
avatar rdeutz rdeutz - reference | 8a1d1e2 - 13 Dec 16
avatar rdeutz rdeutz - merge - 13 Dec 2016
avatar rdeutz rdeutz - close - 13 Dec 2016
avatar rdeutz rdeutz - change - 13 Dec 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-12-13 12:21:56
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 13 Dec 2016
avatar rdeutz rdeutz - merge - 13 Dec 2016
avatar cpfeifer cpfeifer - reference | fb3e6ba - 22 Dec 16

Add a Comment

Login with GitHub to post a comment