No Code Attached Yet bug
avatar marschland
marschland
18 Oct 2024

Steps to reproduce the issue

Create a menu item in the admin area to only list articles of a certain category chosen in the filter tab which results in a link like this: index.php?option=com_content&view=articles&filter_category_id=1

Expected result

A list of articles from only the chosen category.

Actual result

A list of all articles unfiltered.

System information (as much as possible)

Joomla 5.2.0 fresh install, upgraded from latest J4.

Additional comments

If I use the filter options in the article listing everything works fine. But when it should filter from a filter provided via URL nothing changes. The set filter from the article list does not change, no matter which URL I use to change the listing.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar marschland marschland - open - 18 Oct 2024
avatar marschland marschland - change - 18 Oct 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 18 Oct 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Oct 2024
avatar brianteeman
brianteeman - comment - 18 Oct 2024

Please try
administrator/index.php?option=com_content&view=articles&filter[category_id]=1

avatar marschland
marschland - comment - 18 Oct 2024

Thank you, this is working as expected.

But: That should be the case when creating a link through the menu item's interface. Now I would have to manually enter every link as a system link and provide the ID of each category by hand. Since the site has around 30 categories whose articles need to be edited by the user, I would have to create 30 system links by hand entering each category ID by hand as well.

It would be great if the filter option could be fixed to create a functional link again.

Thank you again for the quick solution so we can keep working on the project.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44305.

avatar brianteeman
brianteeman - comment - 18 Oct 2024

Ah I see what you mean now.

I can confirm that the the links generated by Joomla when creating an admin menu item do not work correctly any more.

avatar Quy Quy - change - 18 Oct 2024
Labels Added: bug
avatar Quy Quy - labeled - 18 Oct 2024
avatar brianteeman
brianteeman - comment - 3 Nov 2024

This was caused by the changes made by @Hackwar in #43230 in administrator/components/com_content/src/Model/ArticlesModel.php

@Hackwar I can do a PR to revert that change but maybe thats too much. I'd appreciate it if you could take a look. Basically this admin menu can be created with various filters all of which dont work without the code you removed. This is the only admin menu type impacted as none opf the others have a filter option

Image

avatar webgras
webgras - comment - 5 Nov 2024

I have the some problem on a client site. I set the filter, but in the article list, the filter is ignored.
Image
Image

avatar hytsch
hytsch - comment - 8 Nov 2024

Too bad this bug was not fixed with 5.2.1. As long as the bug persists, we have to stay with 5.1 and can't use the nice new features of 5.2 ;(

avatar brianteeman
brianteeman - comment - 8 Nov 2024

@webgras I can fix it easily by reverting the mentioned pr by @hannes but wanted to wait for his response first

avatar Kubik-Rubik
Kubik-Rubik - comment - 8 Nov 2024

We only need to add the allowed filters back. I can create a PR for it.

avatar brianteeman
brianteeman - comment - 8 Nov 2024

We only need to add the allowed filters back. I can create a PR for it.

obviously

avatar Kubik-Rubik
Kubik-Rubik - comment - 8 Nov 2024

PR: #44426

avatar richard67 richard67 - change - 8 Nov 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-11-08 10:54:45
Closed_By richard67
avatar richard67 richard67 - close - 8 Nov 2024
avatar richard67
richard67 - comment - 8 Nov 2024

Closing as having a pull request. Please test #44426 . Thanks in advance.

Add a Comment

Login with GitHub to post a comment