Closed Deltik closed 1 year ago
Code Climate has analyzed commit 1d1f4d08 and detected 0 issues on this pull request.
The test coverage on the diff in this pull request is 75.0% (80% is the threshold).
This pull request will bring the total coverage in the repository to 34.7% (0.0% change).
View more on Code Climate.
Excellent! Thanks @Deltik
Motivation and Context
These changes fixed individual symptoms, but not the root cause:
news
plugin category breadcrumb in an effort to fix the category list in thenews_categories
menu.Description
This change reverts both failed fixes and actually addresses the root cause: When rendering the category list, read out the
category_id
, ande_news_category_item::sc_news_category_url()
should be passing incategory_id
, notid
.id
cannot mean both the category ID and the news item ID.How Has This Been Tested?
Manually, I checked both the
news_categories
menu behavior and the breadcrumb behavior on allnews
SEF variants at/e107_admin/eurl.php?mode=main&action=config
.Automated tests for the
news
plugin category SEF URLs are in the new filee107_tests/tests/unit/plugins/news/PluginNewsTest.php
.Types of Changes
Checklist