PR-4.3-dev ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
25 Jul 2021

Pull Request for Issue # .

Summary of Changes

Use $app->getParams() to get $params variable. Less code, consistent with other model classes.

Testing Instructions

Code review should be enough.

avatar joomdonation joomdonation - open - 25 Jul 2021
avatar joomdonation joomdonation - change - 25 Jul 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Jul 2021
Category Front End com_contact
avatar joomdonation joomdonation - change - 25 Jul 2021
Labels Added: ?
avatar wilsonge
wilsonge - comment - 25 Jul 2021

https://github.com/joomla/joomla-cms/blob/staging/components/com_content/models/category.php#L117-L127 We have the same code in com_content at the moment.

Newsfeeds doesn't even merge the menu specific items :) https://github.com/joomla/joomla-cms/blob/staging/components/com_newsfeeds/models/category.php#L197

Overall I think this is right - we just need to get everything consistent at once.

avatar joomdonation
joomdonation - comment - 26 Jul 2021

@wilsonge We handle it different in com_content, thus I made a separate PR #34892 for com_content.

For newsfeeds, yes, we have it in different way, too. So 3 components, should work in the same way but we handle it different in each component :D. I will add the same change to com_newsfeeds into this PR

avatar joomla-cms-bot joomla-cms-bot - change - 26 Jul 2021
Category Front End com_contact Front End com_contact com_newsfeeds
avatar joomdonation joomdonation - change - 26 Jul 2021
Title
[4.0] Simplify params model state for com_contact
[4.0] Simplify params model state for com_contact, com_newsfeeds
avatar joomdonation joomdonation - edited - 26 Jul 2021
avatar joomdonation
joomdonation - comment - 26 Jul 2021

OK. I use similar code for com_newsfeeds. Assume it is accepted, we will have consistent code for the three components :).

avatar chmst chmst - change - 31 Jan 2022
Labels Added: ?
Removed: ?
avatar HLeithner
HLeithner - comment - 27 Jun 2022

This pull request has automatically rebased to 4.2-dev.

avatar joomla-bot
joomla-bot - comment - 27 Jun 2022

This pull requests has been automatically converted to the PSR-12 coding standard.

avatar rdeutz rdeutz - change - 21 Oct 2022
Title
[4.0] Simplify params model state for com_contact, com_newsfeeds
Simplify params model state for com_contact, com_newsfeeds
avatar rdeutz rdeutz - edited - 21 Oct 2022
avatar rdeutz rdeutz - change - 21 Oct 2022
Labels Added: ? ?
Removed: ?
avatar bembelimen bembelimen - change - 21 Oct 2022
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-10-21 16:11:27
Closed_By bembelimen
Labels Added: PR-4.3-dev
Removed: ?
avatar bembelimen bembelimen - close - 21 Oct 2022
avatar bembelimen bembelimen - merge - 21 Oct 2022
avatar bembelimen
bembelimen - comment - 21 Oct 2022

Thx

Add a Comment

Login with GitHub to post a comment