? Success

User tests: Successful: Unsuccessful:

avatar bertmert
bertmert
6 Apr 2015

Issue #6661

Test:

  • Current staging.
  • Extensions > Module Manager
  • Select "Site" as Client to see frontend modules.
  • Select Position "atomic-bottomleft".
  • Select Language: "All"
  • Select now "Administrator" as Client to see backend modules.
  • Message "There are no modules matching your query"
  • See Position filter field: "- Select Position-". That's confusing.
  • See Language filter field: Still "All"
  • Click cross next to Search filter to reload page. All OK afterwards.

LOG OUT, LOG IN! to clear user session. Then apply patch. Or vice versa.

After patch:

  • Filters for Position and Type are resetted correctly when Client changed. Also in the background.
  • Message "There are no modules matching your query" only if other filters like State or Language don't match.
  • You see modules of newly selected client immediately. There's no need to reload page.

  • Test also in template Hathor!

avatar bertmert bertmert - open - 6 Apr 2015
avatar joomla-cms-bot joomla-cms-bot - change - 6 Apr 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 6 Apr 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 6 Apr 2015
Category Administration JavaScript
avatar crommie
crommie - comment - 10 Apr 2015

Tested according to instructions. All filters are reset, except Language filter, shouldn't that be reset as well?


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

avatar larapetersen
larapetersen - comment - 10 Apr 2015

@test Could recreate problem, patch works as described. I agree that it looks nicer if language filter is reset as well.


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

avatar larapetersen larapetersen - test_item - 10 Apr 2015 - Tested successfully
avatar gaastras
gaastras - comment - 10 Apr 2015

@test Patch is working correctly.


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

avatar gaastras gaastras - test_item - 10 Apr 2015 - Tested successfully
avatar gaastras gaastras - test_item - 10 Apr 2015 - Tested successfully
avatar bertmert bertmert - change - 10 Apr 2015
Title
Fix for #6661. Module Manager. Reset filters Position and Type when filter Client changes.
Fix for #6661. Module Manager/Hathor. Reset filters Position and Type when filter Client changes.
avatar bertmert
bertmert - comment - 10 Apr 2015

Due to RTC PR #6682 (that fixes this issue similarly) I've removed changes of administrator/components/com_modules/views/modules/tmpl/default.php here.
Just fix for template Hathor remaining here.

avatar brianteeman
brianteeman - comment - 22 Apr 2015

Setting to RTC - thanks for testing


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

avatar brianteeman brianteeman - change - 22 Apr 2015
Status Pending Ready to Commit
avatar zero-24 zero-24 - change - 30 Apr 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 30 Apr 2015
Labels Added: ?
avatar roland-d roland-d - change - 2 May 2015
Labels Removed: ?
avatar roland-d roland-d - change - 2 May 2015
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 2 May 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 2 May 2015
Labels Added: ?
avatar roland-d
roland-d - comment - 2 May 2015

I have removed the RTC label for now, because I do agree with @crommie and @larapetersen that the language filter should be reset as well. If I set it to English for example, changing to Administrator also gives me no results. Resetting all search filters, will give you all modules and you can filter from there on.

avatar zero-24 zero-24 - change - 2 May 2015
Status Ready to Commit Pending
avatar zero-24 zero-24 - change - 2 May 2015
Labels Removed: ?
avatar zero-24 zero-24 - change - 2 May 2015
Labels Removed: ?
avatar bertmert bertmert - change - 3 May 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-05-03 02:26:04
Closed_By bertmert
avatar bertmert bertmert - close - 3 May 2015
avatar bertmert bertmert - close - 3 May 2015
avatar roland-d
roland-d - comment - 3 May 2015

@bertmert Why close this PR? I think it is a good change, just need to add the language reset as well.

avatar roland-d roland-d - change - 3 May 2015
Status Closed New
Closed_Date 2015-05-03 02:26:04
Closed_By bertmert
avatar roland-d roland-d - reopen - 3 May 2015
avatar roland-d roland-d - reopen - 3 May 2015
avatar bertmert
bertmert - comment - 6 May 2015

Added reset for #filter_language. I coudn't test it (crashed my test environment somehow).

avatar bertmert bertmert - change - 6 May 2015
Title
Fix for #6661. Module Manager/Hathor. Reset filters Position and Type when filter Client changes.
Fix for #6661. Module Manager/Hathor. Reset filters Position, Language and Type when filter Client changes.
avatar infograf768
infograf768 - comment - 8 May 2015

This does not work here and I do not understand how anyone could test it correctly.
This is for Hathor, not Isis.
The issue is not related to this PR. It happens here without this change

I never can get the Site modules when using Hathor (as we have to click on Submit) if the client was set to Administrator in Isis before I switched to Hathor

If I set the filter on Site and let all filters set to Select ... or choose something in any filter, when I click on Submit, the Client changes to Administrator as it was set to Administrator in Isis before switching to Hathor.

If, in the contrary, I set in Isis the client to Site, then I never can display the Administrator client modules in Hathor.

To be sure of this test. I set the template to Hathor, then quitted joomla and deleted the cookie, then logged again: I never could get the administrator modules to display as, per default, the client is site.

Better correct that bug first imho.

PS: Related, needs a small PR: #filter_language is missing for Isis
https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_modules/layouts/joomla/searchtools/default/bar.php#L18

avatar infograf768
infograf768 - comment - 8 May 2015

I guess the bug came from:
#6682

avatar bertmert bertmert - close - 8 May 2015
avatar bertmert
bertmert - comment - 8 May 2015

@brianteeman @roland-d @infograf768 I've closed this PR because of #6682 (comment) Some code parts of 6682 are related to this issue here. I don't find a way at the moment to solve all conflicts. I'm too confused about Hathor specifics,,,

avatar bertmert bertmert - change - 8 May 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-05-08 12:05:45
Closed_By bertmert
avatar bertmert bertmert - close - 8 May 2015
avatar Bakual
Bakual - comment - 9 May 2015

PR #6682 is reverted.

Add a Comment

Login with GitHub to post a comment