No Code Attached Yet
avatar pashaarshad
pashaarshad
31 Jan 2026

Steps to reproduce the issue

  1. Open Category.php
  2. Compare the options() method (line 48) with the categories() method (line 153)
  3. Try to use filter.language or filter.access with the categories() method
  4. 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.

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.

avatar pashaarshad pashaarshad - open - 31 Jan 2026
avatar joomla-cms-bot joomla-cms-bot - change - 31 Jan 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 31 Jan 2026
avatar pashaarshad
pashaarshad - comment - 31 Jan 2026

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

avatar brianteeman
brianteeman - comment - 31 Jan 2026

@pashaarshad where is the pull request

avatar pashaarshad
pashaarshad - comment - 31 Jan 2026

@brianteeman , now u can see it

avatar brianteeman
brianteeman - comment - 31 Jan 2026

where?

avatar joomdonation
joomdonation - comment - 31 Jan 2026

where?

@brianteeman He made PR #46800 . But I closed it because the change is included in #46668 which contains more details discussion

avatar brianteeman
brianteeman - comment - 31 Jan 2026

thanks @joomdonation

avatar joomdonation joomdonation - change - 31 Jan 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-01-31 14:29:28
Closed_By joomdonation
avatar joomdonation joomdonation - close - 31 Jan 2026
avatar joomdonation
joomdonation - comment - 31 Jan 2026

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.

Add a Comment

Login with GitHub to post a comment