Feature No Code Attached Yet
avatar peterhulst
peterhulst
16 Jan 2026

Steps to reproduce the issue

  • When editting an article or selecting articles for batch processing, archived categories are not shown in the category drop down list.
  • When an article with an archived category is opened for editing, the category is automaticly changed to the first non-archived category.

Expected result

The archived category is visible and selectable in the category dropdown list.
The category remains the same.
All categories should be visible in the category dropdown list

Actual result

The archived category is NOT visible and this NOT selectable in the category dropdown list.
The category is automaticly changed to the first non-archived category.

System information (as much as possible)

Joomla 4,5,6

Additional comments

Workaround: make the category published again, move or edit the article and archive the category again.

avatar peterhulst peterhulst - open - 16 Jan 2026
avatar joomla-cms-bot joomla-cms-bot - change - 16 Jan 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Jan 2026
avatar peterhulst
peterhulst - comment - 16 Jan 2026

The same is true when moving a category to an archived parent category. That parent category is also not visible

avatar chmst chmst - change - 16 Jan 2026
Labels Added: Feature
avatar chmst chmst - labeled - 16 Jan 2026
avatar peterhulst
peterhulst - comment - 17 Jan 2026

Hello,

It can be changed in: administrator\components\com_categories\src\field\CategoryeditField.php

Change line 149 (in J5.4.2):
$published = $this->element['published'] ? explode(',', (string) $this->element['published']) : [0, 1];
to:
$published = $this->element['published'] ? explode(',', (string) $this->element['published']) : [0, 1, 2];

Now archived categories can also be selected and will not be reset to a published category.

regards,
Peter

avatar hiteshm0
hiteshm0 - comment - 18 Jan 2026

@peterhulst, small addition to your proposed fix as batch layout does not instantiate CategoryeditField but calls HTMLHelper directly.

avatar alikon
alikon - comment - 18 Jan 2026

please test #46706

avatar alikon alikon - change - 18 Jan 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-01-18 11:23:08
Closed_By alikon
avatar alikon alikon - close - 18 Jan 2026

Add a Comment

Login with GitHub to post a comment