User tests: Successful: Unsuccessful:
Pull Request resolves #39274.
This is the same PR at #47580, just against 5.4 instead of 6.2.
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 and Close.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:
bug
PR-5.4-dev
|
||
I have tested this item ✅ successfully on 55a1e16
I was able to test this successfully during May 22nd PR Testing Session!
Thanks @CSGoat0!
I have tested this item ✅ successfully on 55a1e16
Works - Author in Article disappeared after applying patch
I have tested this item ✅ successfully on 55a1e16
Works - Author in Article disappeared after applying patch
| Status | Pending | ⇒ | Ready to Commit |
RTC
RTC
I have tested this item ✅ successfully on 55a1e16
I was able to test this successfully during May 22nd PR Testing Session!
Thanks @CSGoat0!
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47752.