PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
28 Aug 2023

Summary of Changes

When adding a menu item to edit/creates articles, this code checks if the parameter enable_category is equal to 1 and if the catid is set. However, when you add this code not via the menu manager, but manually via some script, it will throw a notice when that parameter is not set. This PR adds a simple check if that param is present before comparing it. Since not setting this equals to 0, this should be fine.

Testing Instructions

Right now, before #41489 is merged, the testing sampledata can not be run, because that parameter is missing. So, install Joomla and run the testing sampledata.

Actual result BEFORE applying this Pull Request

Adding the testing sampledata fails with a notice in the AJAX call.

Expected result AFTER applying this Pull Request

Now it works.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 28 Aug 2023
Category Front End Plugins
avatar Hackwar Hackwar - open - 28 Aug 2023
avatar Hackwar Hackwar - change - 28 Aug 2023
Status New Pending
avatar Quy Quy - test_item - 28 Aug 2023 - Tested successfully
avatar Quy
Quy - comment - 28 Aug 2023

I have tested this item ✅ successfully on 807c364


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

avatar HLeithner
HLeithner - comment - 31 Aug 2023

thanks

avatar Quy Quy - change - 2 Sep 2023
Labels Added: PR-5.0-dev
avatar HLeithner HLeithner - change - 2 Sep 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-09-02 18:53:08
Closed_By HLeithner
avatar HLeithner HLeithner - close - 2 Sep 2023
avatar HLeithner HLeithner - merge - 2 Sep 2023
avatar HLeithner
HLeithner - comment - 2 Sep 2023

thanks

Add a Comment

Login with GitHub to post a comment