? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
31 Jul 2017

Completing multilang administrator modules new feature

Summary of Changes

Added a specific requires in list.php and use it in the filter_modulesadmin.xml filter file.

Testing Instructions

Patch an instance of staging.

In Modules Parameters, enable or not Language Filtering
When Language Filtering is off, the Sorting options will no more display Sorting by language.

screen shot 2017-07-31 at 09 04 40

@izharaazmi @AlexRed

avatar joomla-cms-bot joomla-cms-bot - change - 31 Jul 2017
Category Administration com_modules Libraries
avatar infograf768 infograf768 - open - 31 Jul 2017
avatar infograf768 infograf768 - change - 31 Jul 2017
Status New Pending
avatar izharaazmi
izharaazmi - comment - 31 Jul 2017

@infograf768 Do we have requires="multilanguage" for frontend modules too? And I think this should be for every list page not just Module Manager.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 31 Jul 2017 - Tested unsuccessfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 Jul 2017

I have tested this item ? unsuccessfully on 8a68634

Set Module-Options Language Filtering to Yes got: Notice: Undefined index: nativeName in /Applications/MAMP/htdocs/3/administrator/components/com_modules/controller.php on line 87

This happens also without applied PR, so should i open a new Issue?


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

avatar infograf768
infograf768 - comment - 31 Jul 2017

@franz-wohlkoenig
With which language have you tested?

If the language does not not contain nativeName in its xml, then it explains the issue.
Will make a patch to check this to solve this eventual issue (although language packs SHOULD contain the nativeName metadata.

avatar infograf768
infograf768 - comment - 31 Jul 2017

@izharaazmi

@infograf768 Do we have requires="multilanguage" for frontend modules too? And I think this should be for every list page not just Module Manager.

I guess this will have to be done in 4.0 where there is a patch taking off language fields and columns when multilanguage is off.

avatar izharaazmi
izharaazmi - comment - 31 Jul 2017

Then this should also go in the same timeline for consistency.

avatar infograf768
infograf768 - comment - 31 Jul 2017

Then this should also go in the same timeline for consistency.

Not sure, as this is a special method dealing with adminlanguage and not contentlanguage and it is used only for back-end modules, including in 4.0

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 Jul 2017

@infograf768 aktive Lang. en-GB, also installed zh-CN, de-AT and fa-IR.

So i will mark Test successfully as you make another PR solving Notice?

avatar infograf768
infograf768 - comment - 31 Jul 2017

@franz-wohlkoenig
Please check the xx-XX.xml metadata for these 3 languages.
But anyway, will make patch to cope with this

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 31 Jul 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 Jul 2017

I have tested this item successfully on 8a68634


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 Jul 2017

en-GB, fa-IR, zh_CN have <nativeName></nativeName>; de-AT have not.

avatar izharaazmi izharaazmi - test_item - 31 Jul 2017 - Tested successfully
avatar izharaazmi
izharaazmi - comment - 31 Jul 2017

Please fix the title, "not enabled" or "disabled"

avatar izharaazmi
izharaazmi - comment - 31 Jul 2017

I have tested this item successfully on 8a68634


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

avatar infograf768
infograf768 - comment - 31 Jul 2017

@franz-wohlkoenig
so, that's the reason... We have to let it know to the German TT.
In the mean while, will make a PR

avatar infograf768 infograf768 - change - 31 Jul 2017
Title
Admin modules: no need to sort by language when filtering is enabled
Admin modules: no need to sort by language when filtering is disabled
avatar infograf768 infograf768 - edited - 31 Jul 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 31 Jul 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 Jul 2017

RTC after two successful tests.

avatar mbabker mbabker - change - 31 Jul 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-07-31 11:42:56
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 31 Jul 2017
avatar mbabker mbabker - merge - 31 Jul 2017
avatar infograf768
infograf768 - comment - 31 Jul 2017

Add a Comment

Login with GitHub to post a comment