User tests: Successful: Unsuccessful:
Pull Request resolves #39274
Fixed incorrect author visibility on the article detail page when navigating from a Category Blog menu item that has Author set to Use Article Settings, and the article itself has Author set to Use Global, while the Global configuration has Author set to Hide.
The root cause was in ArticleModel.php: the params merge logic was a simple merge() of article attribs on top of the menu/global params. This did not account for the three-tier resolution (Menu → Article → Global) that ArticlesModel.php correctly implements for the Category Blog view.
Specifically, when a menu param is set to use_article:
"0" or "1"), that value should be used."" (Use Global / empty string), the global component param should be used as the fallback.The fix aligns ArticleModel::getItem() with the same three-tier resolution logic already present in ArticlesModel::getItems().
File changed: components/com_content/src/Model/ArticleModel.php
Hide, click Save & Close.Test Article - Show Author) with Author set to Show.Test Article - Use Global) with Author set to Use Global.Use Article Settings. Save.When navigating to the detail page of Article B (Use Global), the author is incorrectly displayed, even though the Global configuration has Author set to Hide.
The detail page of Article B correctly hides the author, respecting the three-tier resolution chain: Menu (Use Article Settings) → Article (Use Global) → Global (Hide).
The detail page of Article A continues to correctly show the author as expected.
Please select:
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End com_content |
| Labels |
Added:
PR-6.2-dev
|
||
I have tested this item ✅ successfully on 74e705d
I need some Time till i look at the Detail Article Page :-)
Thanks @CSGoat0 for the Pull Request.
@Mike92115 @filipe-torres Can you please also test?
@CSGoat0
This PR will fail stylings checks, please look into it.