No Code Attached Yet bug
avatar drmenzelit
drmenzelit
22 Nov 2023

Steps to reproduce the issue

Fresh installed Joomla 5.1 without content, only standard categories present.
Category "Uncategorised" in Content has the id 2, category "Uncategorised" in Contacts has the id 4.
Create a menu item "List Contacts in a Category", click on "Select a Category"

Expected result

The modal opens and the list contains the category "Uncategorised" with id 4

Actual result

The modal opens and the list contains the category "Uncategorised" with id 2, in frontend you get an error: 404 Category not found

System information (as much as possible)

Additional comments

avatar drmenzelit drmenzelit - open - 22 Nov 2023
avatar joomla-cms-bot joomla-cms-bot - change - 22 Nov 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Nov 2023
avatar chmst chmst - change - 22 Nov 2023
Labels Added: bug
avatar chmst chmst - labeled - 22 Nov 2023
avatar chmst
chmst - comment - 22 Nov 2023

Confirmed

avatar Fedik
Fedik - comment - 22 Nov 2023

I see, I forgot append $extension to the link. In J5.0 it is:

// Setup variables for display.
$linkCategories = 'index.php?option=com_categories&view=categories&layout=modal&tmpl=component&' . Session::getFormToken() . '=1'
. '&extension=' . $extension;
$linkCategory = 'index.php?option=com_categories&view=category&layout=modal&tmpl=component&' . Session::getFormToken() . '=1'
. '&extension=' . $extension;

I will do PR later.

avatar Fedik Fedik - close - 23 Nov 2023
avatar Fedik Fedik - change - 23 Nov 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-11-23 08:49:48
Closed_By Fedik
avatar Fedik
Fedik - comment - 23 Nov 2023

Please test #42391

Add a Comment

Login with GitHub to post a comment