options() method (line 48) with the categories() method (line 153)filter.language or filter.access with the categories() methodcategories() but work in options()Both options() and categories() methods should support the same filters:
filter.published ✅filter.language ✅filter.access ✅filter.exclude ✅The categories() method only supports filter.published, while options() supports all filters.
This is an inconsistency in the codebase. The categories() method should have the same filter support as options() for a consistent developer experience.
I'm willing to submit a PR to fix this issue.
Steps to reproduce the issue Open [Category.php](vscode-file://vscode-app/c:/Users/Admin/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/workbench/workbench.html) Compare the options() method (line 48) with the categories() method (line 153) Try to use filter.language or filter.access with the categories() method Notice these filters don't work in categories() but work in options() Expected result Both options() and categories() methods should support the same filters:filter.published ✅
filter.language ✅
filter.access ✅
filter.exclude ✅
Actual result
The categories() method only supports filter.published, while options() supports all filters.
Filter options() categories()
filter.published ✅ ✅
filter.language ✅ ❌ Missing
filter.access ✅ ❌ Missing
filter.exclude ✅ ❌ Missing
System information (as much as possible)
Joomla Version: 5.x / 6.x
PHP Version: 8.x
File: Category.php
Additional comments
This is an inconsistency in the codebase. The categories() method should have the same filter support as options() for a consistent developer experience.
I'm willing to submit a PR to fix this issue.
| Labels |
Added:
No Code Attached Yet
|
||
@pashaarshad where is the pull request
@brianteeman , now u can see it
where?
where?
@brianteeman He made PR #46800 . But I closed it because the change is included in #46668 which contains more details discussion
thanks @joomdonation
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-01-31 14:29:28 |
| Closed_By | ⇒ | joomdonation |
I'm closing this issue. It is not really an issue, It tries to describe what the PR does and should be included in the PR description.
Pull Request for Issue #46799
Summary of Changes
Added missing filter support to Category::categories() method to match Category::options() method:
✅ filter.language - Filter categories by language
✅ filter.access - Filter categories by access level
✅ filter.exclude - Exclude specific category IDs