? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
4 Mar 2020

Pull Request for Issue #28220

Summary of Changes

Forcing client id to site

Testing Instructions

See #28220

Before patch

Wrong type and positions in the filters
Screen Shot 2020-03-04 at 11 05 12
Screen Shot 2020-03-04 at 11 04 40

After patch

Screen Shot 2020-03-04 at 11 50 05

Screen Shot 2020-03-04 at 11 49 57

avatar infograf768 infograf768 - open - 4 Mar 2020
avatar infograf768 infograf768 - change - 4 Mar 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Mar 2020
Category Administration com_modules
avatar brianteeman
brianteeman - comment - 4 Mar 2020

I have tested this item successfully on eba21d4


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

avatar brianteeman brianteeman - test_item - 4 Mar 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 4 Mar 2020

I have tested this item successfully on eba21d4


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

avatar jwaisner jwaisner - test_item - 4 Mar 2020 - Tested successfully
avatar jwaisner jwaisner - change - 4 Mar 2020
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 4 Mar 2020

RTC


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

avatar wilsonge
wilsonge - comment - 4 Mar 2020

This isn’t the correct fix. First I’m unsure whether all modals are always displaying site modules. If this is the case then make the change here

https://github.com/infograf768/joomla-cms/blob/eba21d47cce29c2f6d1bab6d8ee23e3569851494/administrator/components/com_modules/src/Model/ModulesModel.php#L110 Removing the client site check from the if statement

avatar infograf768
infograf768 - comment - 5 Mar 2020

I can't find another use of this modal.
the code you point to should work as it is a IF OR

		// Special case for the client id.
		if ($app->isClient('site') || $layout === 'modal')
		{
			$this->setState('client_id', 0);
			$clientId = 0;
		}

but it does not... thus why I used this solution.

avatar infograf768
infograf768 - comment - 6 Mar 2020

Folks, if I trust my last tests here, this is no more an issue.
Could someone confirm?

avatar brianteeman
brianteeman - comment - 6 Mar 2020

confirmed

avatar infograf768
infograf768 - comment - 6 Mar 2020

In fact, we still have the issue if the user has first displayed the Admin modules manager.
In that case the client id is admin.
Thanks @SharkyKZ for finding out

avatar brianteeman
brianteeman - comment - 6 Mar 2020

ah that makes sense

avatar infograf768
infograf768 - comment - 6 Mar 2020

This is not working anymore. Closing

avatar infograf768 infograf768 - close - 6 Mar 2020
avatar infograf768 infograf768 - change - 6 Mar 2020
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2020-03-06 09:30:29
Closed_By infograf768
Labels Added: ? ?
avatar SharkyKZ
SharkyKZ - comment - 6 Mar 2020

I would suggest doing this similarly to #24698 so we don't have to use user state in field class.

avatar infograf768
infograf768 - comment - 6 Mar 2020

@SharkyKZ
Good idea.

avatar infograf768
infograf768 - comment - 7 Mar 2020

Please test new PR #28259

Add a Comment

Login with GitHub to post a comment