No Code Attached Yet bug
avatar brianteeman
brianteeman
19 Apr 2022

Steps to reproduce the issue

Create a catgory called test and create 4 articles in that category. Add a tag to each article
Create a module to display popular tags and counts
Unpublish or Trash the category

Expected result - Admin

The article manager indicates in some way that the article cannot bee displayed as the category is unpublished

Actual result - Admin

the articles are listed exactly the same as all other articles

Expected result - Site

in the tags module the count of articles per tag only includes articles which can be displayed

Actual result - Site

the count of articles per tag includes all articles. So the count might display 4 but if they are all in an unpublished article cateory then the link from the module shows zero articles.

Additional comments

Not sure if this is good enough but perhaps something like this

image

avatar brianteeman brianteeman - open - 19 Apr 2022
avatar joomla-cms-bot joomla-cms-bot - change - 19 Apr 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Apr 2022
avatar brianteeman brianteeman - change - 19 Apr 2022
Title
[4.x] Unpublished Category bug
[4.x] Unpublished/Trashed Category bug
avatar brianteeman brianteeman - edited - 19 Apr 2022
avatar brianteeman brianteeman - change - 19 Apr 2022
The description was changed
avatar brianteeman brianteeman - edited - 19 Apr 2022
avatar brianteeman brianteeman - change - 19 Apr 2022
The description was changed
avatar brianteeman brianteeman - edited - 19 Apr 2022
avatar chmst
chmst - comment - 19 Apr 2022

Agree with administration, indicating the state of the category would be useful.

in the tags module the count of articles per tag only includes articles which can be displayed.

I think that articles can be diplayed if their tag is published, independent of the category.

avatar brianteeman
brianteeman - comment - 19 Apr 2022

I think that articles can be diplayed if their tag is published, independent of the category.

No they can't which is how I discovered this bug

[edit] it also effects trashed categories

avatar chmst
chmst - comment - 19 Apr 2022

Sorry - poor english. Yes they have to be displayed and counted if the tag is published (and the article itself) independent from the stat of the category.

avatar chmst chmst - change - 19 Apr 2022
Labels Added: bug
avatar chmst chmst - labeled - 19 Apr 2022
avatar brianteeman
brianteeman - comment - 19 Apr 2022

not sure I agree. If the tag and article is published but the category is not published then it should not bee counted because the article cannot be displayed

avatar brianteeman
brianteeman - comment - 19 Apr 2022

another option for the article list is instead of adding the text to the category name we change the icon and message on the status column. Maybe to a red triangle. With a message - this article will not be displayed as the category is unpublished.

avatar chmst
chmst - comment - 19 Apr 2022

I am not sure about that. Tags enable a kind of multi category solution. If I unpublish the main category - maybe I want to keep it in another category (tag)?

avatar brianteeman
brianteeman - comment - 19 Apr 2022

Then there is no point in adding a message in the article manager at all because it would have to say

this article will not be displayed as the category is unpublished/trashed unless it also has a tag which is published

avatar chmst
chmst - comment - 19 Apr 2022

I agree that this would be confusing.

avatar rdeutz rdeutz - change - 19 Apr 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-04-19 12:54:56
Closed_By rdeutz
avatar rdeutz rdeutz - close - 19 Apr 2022
avatar rdeutz
rdeutz - comment - 19 Apr 2022

Closing as we have a PR #37578

avatar brianteeman
brianteeman - comment - 19 Apr 2022

Please re-open this as @rdeutz pr only addresses half of the issue

avatar Quy Quy - change - 19 Apr 2022
Status Closed New
Closed_Date 2022-04-19 12:54:56
Closed_By rdeutz
avatar Quy Quy - reopen - 19 Apr 2022
avatar brianteeman brianteeman - change - 2 May 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-05-02 22:09:24
Closed_By brianteeman
avatar brianteeman brianteeman - close - 2 May 2022
avatar brianteeman
brianteeman - comment - 2 May 2022

Closing as both issues are now resolved.

Add a Comment

Login with GitHub to post a comment