bug ? PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
15 Aug 2023

Summary of Changes

BaseDatabaseModel implements DispatcherAwareInterface, but MVC does not guarantee that dispatcher will available for legacy components.

Testing Instructions

Apply patch. Install patchtester.
Edit libraries/src/MVC/Model/ListModel.php getFilterForm() method, add $this->getDispatcher();
Open /administrator/index.php?option=com_patchtester

Actual result BEFORE applying this Pull Request

And error Dispatcher not set in Joomla\CMS\MVC\Model\BaseDatabaseModel

Expected result AFTER applying this Pull Request

No error

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:
  • No documentation changes for docs.joomla.org needed
  • Pull Request link for manual.joomla.org:
  • No documentation changes for manual.joomla.org needed
avatar joomla-cms-bot joomla-cms-bot - change - 15 Aug 2023
Category Libraries
avatar Fedik Fedik - open - 15 Aug 2023
avatar Fedik Fedik - change - 15 Aug 2023
Status New Pending
avatar HLeithner
HLeithner - comment - 15 Aug 2023

I think the deprecation trigger should be moved into the if statement

avatar Fedik
Fedik - comment - 15 Aug 2023

It deprecated both if and else, so I see no point :)

I mean whole block should be removed in 6.0

avatar Fedik
Fedik - comment - 15 Aug 2023

hmhm, all tests are gone wild ?

avatar Fedik Fedik - change - 15 Aug 2023
Labels Added: bug ? PR-4.4-dev
avatar Fedik
Fedik - comment - 15 Aug 2023

It is good now

avatar Fedik
Fedik - comment - 15 Aug 2023

I have changed the approach, now should be better.

626bb58 15 Aug 2023 avatar Fedik phpcs
72a5c20 15 Aug 2023 avatar Fedik clean
avatar MacJoom MacJoom - change - 16 Aug 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-08-16 17:09:03
Closed_By MacJoom
avatar MacJoom MacJoom - close - 16 Aug 2023
avatar MacJoom MacJoom - merge - 16 Aug 2023

Add a Comment

Login with GitHub to post a comment