Conflicting Files ? ? ? Pending

User tests: Successful: Unsuccessful:

avatar rdeutz
rdeutz
20 Feb 2020

Pull Request for Issue #24559 .

Summary of Changes

This moves the addIncludeMethod from the LeagcyModelLoaderTrait to the BaseModel and declare the $paths var as static member of the class

Testing Instructions

Check components that are using the addIncludePath method, if they are still working

Expected result

It still works

Documentation Changes Required

none

avatar rdeutz rdeutz - open - 20 Feb 2020
avatar rdeutz rdeutz - change - 20 Feb 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Feb 2020
Category Libraries
avatar richard67
richard67 - comment - 20 Feb 2020

The linked issue at the top of the description is wrong. It is #24599 , but it should be #24559 .

avatar wilsonge wilsonge - change - 20 Feb 2020
The description was changed
avatar wilsonge wilsonge - edited - 20 Feb 2020
avatar rdeutz rdeutz - change - 20 Feb 2020
The description was changed
avatar rdeutz rdeutz - edited - 20 Feb 2020
avatar rdeutz
rdeutz - comment - 20 Feb 2020

Thanks fixed it

avatar richard67
richard67 - comment - 20 Feb 2020

@rdeutz Not really, I still see ‘Pull Request for Issue #24599 .‘.

avatar rdeutz rdeutz - change - 20 Feb 2020
The description was changed
avatar rdeutz rdeutz - edited - 20 Feb 2020
avatar rdeutz
rdeutz - comment - 20 Feb 2020

It's like cs fixes, it always takes two or more attempts to fix a trailing space :-)

avatar SharkyKZ
SharkyKZ - comment - 21 Feb 2020
Call to undefined method Joomla\CMS\MVC\Model\BaseModel::addIncludePath() 

Call stack
--
# | Function | Location
1 | () | JROOT\libraries\src\MVC\Controller\BaseController.php:186
2 | Joomla\CMS\MVC\Controller\BaseController::addModelPath() | JROOT\libraries\src\MVC\Controller\BaseController.php:460
3 | Joomla\CMS\MVC\Controller\BaseController->__construct() | JROOT\libraries\src\MVC\Factory\MVCFactory.php:77
4 | Joomla\CMS\MVC\Factory\MVCFactory->createController() | JROOT\libraries\src\Dispatcher\ComponentDispatcher.php:172
5 | Joomla\CMS\Dispatcher\ComponentDispatcher->getController() | JROOT\libraries\src\Dispatcher\ComponentDispatcher.php:145
6 | Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() | JROOT\libraries\src\Component\ComponentHelper.php:384
7 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT\libraries\src\Application\AdministratorApplication.php:115
8 | Joomla\CMS\Application\AdministratorApplication->dispatch() | JROOT\libraries\src\Application\AdministratorApplication.php:158
9 | Joomla\CMS\Application\AdministratorApplication->doExecute() | JROOT\libraries\src\Application\CMSApplication.php:230
10 | Joomla\CMS\Application\CMSApplication->execute() | JROOT\administrator\includes\app.php:63
11 | require_once() | JROOT\administrator\index.php:36
avatar rdeutz rdeutz - change - 21 Feb 2020
Labels Added: ? ? ?
avatar SharkyKZ
SharkyKZ - comment - 21 Feb 2020

Last commit reintroduces the original issue.

avatar rdeutz rdeutz - change - 23 Feb 2020
Labels Added: ?
Removed: ?
avatar rdeutz rdeutz - change - 23 Feb 2020
The description was changed
avatar rdeutz rdeutz - edited - 23 Feb 2020
avatar SharkyKZ
SharkyKZ - comment - 23 Feb 2020

This works but if we go this way the method should stay in LeagcyModelLoaderTrait (according to #24559).

avatar jwaisner
jwaisner - comment - 24 Feb 2020

@rdeutz Can you clarify in your testing instructions what components are affected by the change? I want to ensure that this is tested properly.

avatar jwaisner jwaisner - change - 25 Feb 2020
Priority Medium Urgent
avatar chmst
chmst - comment - 3 Mar 2020

I have tested this with differenc components: com_cache, com_users, com_content and looks good.
But recommend more tests, especially with 3rd party components


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

avatar jwaisner
jwaisner - comment - 6 Mar 2020

@rdeutz Can you please resolve conflicts?

avatar wilsonge
wilsonge - comment - 9 Mar 2020

LeagcyModelLoaderTrait just realised this has a typo in xD

avatar rdeutz rdeutz - change - 10 Mar 2020
Labels Added: Conflicting Files ?
Removed: ?
avatar richard67 richard67 - change - 10 Mar 2020
The description was changed
avatar richard67 richard67 - edited - 10 Mar 2020
avatar wilsonge
wilsonge - comment - 11 Mar 2020

Confirmed with the weblinks module that this fixes the issue. Thankyou!

avatar wilsonge wilsonge - close - 11 Mar 2020
avatar wilsonge wilsonge - merge - 11 Mar 2020
avatar wilsonge wilsonge - change - 11 Mar 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-03-11 19:30:15
Closed_By wilsonge
Labels Added: ?
Removed: ?
avatar SharkyKZ
SharkyKZ - comment - 11 Mar 2020

Wasn't this method supposed to stay in the trait?

avatar wilsonge
wilsonge - comment - 11 Mar 2020

Ideal world yes. But because of php internals it doesn’t work. See the original issue

avatar SharkyKZ
SharkyKZ - comment - 12 Mar 2020

It works either way. The fix was moving caching to class property. PR for moving back the method #28322.

Add a Comment

Login with GitHub to post a comment