? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
27 Jun 2019

Pull Request for Issue #25342.

Summary of Changes

Use current URL parameters when redirecting.

Testing Instructions

Make sure you have at least 2 site menu types.
Edit an article in backend.
In editor, click CMS Content -> Menu.
In the modal, change menu type (by selecting value in - Select Menu - field).

Expected result

Modal shows only a list of menu items.

Actual result

Modal shows entire site, with modules, sidebar, etc.

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 27 Jun 2019
avatar SharkyKZ SharkyKZ - change - 27 Jun 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Jun 2019
Category Administration com_menus
avatar infograf768
infograf768 - comment - 27 Jun 2019

This solves the display to get only the component in the modal, but it does not solve the fact that the items displayed should be filtered by the target language.

Example below: we should display only the items tagged to French

Screen Shot 2019-06-27 at 10 13 25

avatar SharkyKZ
SharkyKZ - comment - 27 Jun 2019

Did you select a language under Filter Options?

avatar infograf768
infograf768 - comment - 27 Jun 2019

I am speaking of a multilingual site. There is no filter for language in the modal as it is a forcedlanguage.

test is done via The Select field in the associations tab when editing a menu item
For example I edit a en-GB tagged menu item and I select the field for French
Screen Shot 2019-06-27 at 10 22 29

When switching menu in the modal to a menu containing ONLY de-DE tagged items, I may get
Screen Shot 2019-06-27 at 10 22 48

although I should get No Matching results

avatar infograf768
infograf768 - comment - 27 Jun 2019

Hint: if you close the modal and then use the Select again, it is correctly filtered as $forcedlanguage is used for the items in the formerly selected menu.
So, maybe a state issue?

avatar infograf768
infograf768 - comment - 27 Jun 2019

Hmm
I think I found the issue as it is also present in com_associations:

In com_associations:
Set the item type and then the language.
Then modify the Item type (for example select categories instead of articles)
The language gets back to Select language instead of keeping its original setting.

Therefore it is the same here:
If we modify the Menu then the language filter (in the Filter Options) is displayed again and forcedLanguage is no more in effect.

Imho jstools is at stake...

avatar SharkyKZ
SharkyKZ - comment - 27 Jun 2019

The language in Associations is reset intentionally:

Menu item issue seems related to the redirect.

avatar infograf768 infograf768 - comment - 27 Jun 2019
avatar SharkyKZ
SharkyKZ - comment - 27 Jun 2019

Yes.

avatar SharkyKZ SharkyKZ - change - 27 Jun 2019
Labels Added: ?
avatar SharkyKZ
SharkyKZ - comment - 27 Jun 2019

Should work now.

avatar richard67 richard67 - test_item - 27 Jun 2019 - Tested successfully
avatar richard67
richard67 - comment - 27 Jun 2019

I have tested this item successfully on 34d8838

Issue in description is solved with this PR.
Issue described in this comment is also solved.
Other issue described in this other comment is not solved. But I think that's not scope of this PR.


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

avatar infograf768
infograf768 - comment - 28 Jun 2019

This works for the 2 issues concerned.
Let's merge it.

NOTE: Found a bug with the Propagate functionality when 4 languages are concerned.
Will look further at it and create new issue. The bug is not restricted to Menu Items.

avatar infograf768 infograf768 - change - 28 Jun 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-06-28 05:33:54
Closed_By infograf768
avatar infograf768 infograf768 - close - 28 Jun 2019
avatar infograf768 infograf768 - merge - 28 Jun 2019
avatar infograf768
infograf768 - comment - 28 Jun 2019

Tks!

Add a Comment

Login with GitHub to post a comment