PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar Denitz
Denitz
17 Oct 2024

Summary of Changes

There are models which don't unitilize the MVCFactoryInterface $factory constructor argument for calling parent's constructor.

This results to useless extra calls to Factory::getApplication()->bootComponent() in BaseDatabaseModel::__construct.

Testing Instructions

Apply patch, ensure no errors on actions with patched models.

Actual result BEFORE applying this Pull Request

Model constructors are missing MVCFactoryInterface $factory argument.

Expected result AFTER applying this Pull Request

All good.

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 Denitz Denitz - open - 17 Oct 2024
avatar Denitz Denitz - change - 17 Oct 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Oct 2024
Category Administration com_banners com_cache com_contact com_content com_modules com_workflow Front End
avatar rdeutz
rdeutz - comment - 17 Oct 2024

Looks good to me, but I would make this for 5.3 and not for 5.2. Would give us some more time to test and be sure we don't have unexpected side effects.

avatar Denitz Denitz - change - 18 Oct 2024
Labels Added: PR-5.2-dev
avatar joomla-cms-bot joomla-cms-bot - change - 18 Oct 2024
Category Administration com_banners com_cache com_contact com_content com_modules com_workflow Front End Administration com_banners com_cache com_contact com_content com_modules com_workflow Front End Libraries
avatar Denitz Denitz - change - 18 Oct 2024
Labels Added: PR-5.3-dev
avatar Denitz
Denitz - comment - 18 Oct 2024

@rdeutz Great, rebased to 5.3-dev

avatar Denitz Denitz - change - 18 Oct 2024
Title
Add missing MVCFactoryInterface into model constructors
[5.3] Add missing MVCFactoryInterface into model constructors
avatar Denitz Denitz - edited - 18 Oct 2024
avatar laoneo
laoneo - comment - 26 Oct 2024

Can you fix the conflict here?

avatar Denitz Denitz - change - 9 Nov 2024
Labels Removed: PR-5.2-dev
avatar joomla-cms-bot joomla-cms-bot - change - 9 Nov 2024
Category Administration com_banners com_cache com_contact com_content com_modules com_workflow Front End Libraries Administration com_banners com_cache com_contact com_content com_modules com_workflow Front End
avatar Denitz
Denitz - comment - 9 Nov 2024

@laoneo Resolved.

avatar laoneo laoneo - change - 9 Nov 2024
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-11-09 15:15:40
Closed_By laoneo
avatar laoneo laoneo - close - 9 Nov 2024
avatar laoneo laoneo - merge - 9 Nov 2024
avatar laoneo
laoneo - comment - 9 Nov 2024

Thanks!

Add a Comment

Login with GitHub to post a comment