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
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.
Joomla 4,5,6
Workaround: make the category published again, move or edit the article and archive the category again.
| Labels |
Added:
No Code Attached Yet
|
||
| Labels |
Added:
Feature
|
||
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
@peterhulst, small addition to your proposed fix as batch layout does not instantiate CategoryeditField but calls HTMLHelper directly.
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-01-18 11:23:08 |
| Closed_By | ⇒ | alikon |
The same is true when moving a category to an archived parent category. That parent category is also not visible