? ? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
22 Feb 2022

The module "Articles - Categories" requires to select a parent category. But that means you can't have the module show all categories, you can only show a subset.

I think this is a requirement which is not needed. The code itself already falls back to "root" if no category is selected.

Summary of Changes

Removing the "required" flag from the parent category field.

Testing Instructions

Test the module "Articles - Categories" and make especially sure nothing breaks when no category is selected.

Actual result BEFORE applying this Pull Request

You always need to select a category and the module shows only subset of the article categories.

Expected result AFTER applying this Pull Request

You don't need to select a category and the module can show all categories.

Documentation Changes Required

None

avatar Bakual Bakual - open - 22 Feb 2022
avatar Bakual Bakual - change - 22 Feb 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Feb 2022
Category Modules Front End
avatar chmst chmst - test_item - 22 Feb 2022 - Tested successfully
avatar chmst
chmst - comment - 22 Feb 2022

I have tested this item successfully on b8c2a08


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

avatar chmst
chmst - comment - 22 Feb 2022

I have tested this item successfully on b8c2a08


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

avatar brianteeman
brianteeman - comment - 22 Feb 2022

I think the history on this code needs to be checked carefully. I'm sure there must be a reason. It is possibly related to multilingual

avatar Bakual
Bakual - comment - 22 Feb 2022

Good point. It looks like it got added just to use the modal_category formfield for J3.7. Before that, the field was not required.
See 45e14dd

avatar toivo toivo - test_item - 23 Feb 2022 - Tested successfully
avatar toivo
toivo - comment - 23 Feb 2022

I have tested this item successfully on b8c2a08

Tested successfully in Joomla 4.1.1-dev of 23 February in Wampserver 3.2.7 using PHP 8.0.15


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

avatar Quy Quy - change - 23 Feb 2022
Status Pending Ready to Commit
Labels Added: ?
avatar Quy
Quy - comment - 23 Feb 2022

RTC


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

avatar laoneo laoneo - change - 23 Feb 2022
Labels Added: ?
avatar laoneo
laoneo - comment - 23 Feb 2022

Good point. It looks like it got added just to use the modal_category formfield for J3.7. Before that, the field was not required. See 45e14dd

Does the category form field still work as expected?

avatar Bakual
Bakual - comment - 23 Feb 2022

Why should it not work? I didn't change anything in the formfield.

avatar laoneo
laoneo - comment - 23 Feb 2022

But you are changing back something which was introduced on purpose. If that still works, then all is fine. Just wanted to double check before merging.

avatar brianteeman
brianteeman - comment - 23 Feb 2022

But you are changing back something which was introduced on purpose.

which is a big red warning flag to me

avatar Bakual
Bakual - comment - 23 Feb 2022

I honestly doubt that it indeed was changed on purpose.
To me it looks more like copy-paste, because in other places it indeed has to be (and was before) required.
But here I couldn't find any issues with it being optional. And yep, of course the formfield can handle empty values.

Also, as I already wrote in the PR description, the code of the module already handles the case when no category is selected. I didn't had to change anything there.

avatar bembelimen bembelimen - change - 17 Mar 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-03-17 21:09:15
Closed_By bembelimen
avatar bembelimen bembelimen - close - 17 Mar 2022
avatar bembelimen bembelimen - merge - 17 Mar 2022
avatar bembelimen
bembelimen - comment - 17 Mar 2022

Thx

Add a Comment

Login with GitHub to post a comment